Skip to content

Commit ac2ae68

Browse files
authored
refactor(docs): standardize background styles with theme-primary (#227)
- replace bg-white and dark:bg-gray-900 with bg-theme-primary - improve visual consistency across documentation components - unify background system for better theming and maintainability
1 parent 9411194 commit ac2ae68

40 files changed

Lines changed: 91 additions & 87 deletions

File tree

__tests__/components/GetStartedButton.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('GetStartedButton Component', () => {
4444
render(<GetStartedButton variant="frosted" />)
4545

4646
const button = screen.getByRole('link', { name: /get started/i })
47-
expect(button).toHaveClass('bg-white/80', 'dark:bg-gray-900/80')
47+
expect(button).toHaveClass('bg-theme-primary-opacity-80')
4848
expect(button).toHaveClass('backdrop-blur-xl', 'backdrop-saturate-150')
4949
expect(button).toHaveClass('font-semibold')
5050
})

src/app/docs/cli/getting-started/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function QuickStartPage() {
4747
{/* Prerequisites */}
4848
<AnimatedSection direction="up" delay={100}>
4949
<div className="mb-12">
50-
<div className="border border-gray-200 dark:border-gray-800 rounded-xl p-6 bg-white dark:bg-gray-900">
50+
<div className="border border-gray-200 dark:border-gray-800 rounded-xl p-6 bg-theme-primary">
5151
<div className="flex items-baseline gap-3 mb-4">
5252
<div className="p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg flex-shrink-0">
5353
<svg className="w-5 h-5 text-blue-600 dark:text-blue-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">

src/app/docs/cli/migration-0-3-2/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default async function MigrationPage() {
7777
<AnimatedSection direction="up" delay={50}>
7878
<div className="relative mb-8 sm:mb-12 lg:mb-16">
7979
<div className="absolute -inset-1 bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl blur opacity-20 dark:opacity-10" />
80-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
80+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
8181
<div className="flex items-baseline gap-3 mb-4 sm:mb-6">
8282
<div className="p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg flex-shrink-0 -mt-0.5">
8383
<svg className="w-5 h-5 sm:w-6 sm:h-6 text-blue-600 dark:text-blue-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -105,7 +105,7 @@ export default async function MigrationPage() {
105105
<AnimatedSection direction="up" delay={200}>
106106
<div className="relative mb-8 sm:mb-12 lg:mb-16">
107107
<div className="absolute -inset-1 bg-gradient-to-r from-violet-600 via-purple-600 to-indigo-600 rounded-2xl blur opacity-20 dark:opacity-10" />
108-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
108+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
109109
<div className="flex items-baseline gap-3 mb-6 sm:mb-8">
110110
<div className="p-3 bg-gradient-to-br from-violet-100 to-purple-100 dark:from-violet-900/30 dark:to-purple-900/30 rounded-xl flex-shrink-0 -mt-0.5">
111111
<svg className="w-6 h-6 sm:w-7 sm:h-7 text-violet-600 dark:text-violet-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">

src/app/docs/cli/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function LogicStampContextDocsPage() {
3030
<AnimatedSection direction="up" delay={100}>
3131
<div className="relative mb-8 sm:mb-12">
3232
<div className="absolute -inset-1 bg-gradient-to-r from-green-600 to-indigo-600 rounded-2xl blur opacity-20 dark:opacity-10" />
33-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
33+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
3434
<div className="flex items-baseline gap-3 mb-4 sm:mb-6">
3535
<div className="p-2 bg-green-100 dark:bg-green-900/30 rounded-lg flex-shrink-0 -mt-0.5">
3636
<svg className="w-5 h-5 sm:w-6 sm:h-6 text-green-600 dark:text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">

src/app/docs/frameworks/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function FrameworksIndexPage() {
5454
<AnimatedSection direction="up" delay={100}>
5555
<div className="relative mb-8 sm:mb-12">
5656
<div className="absolute -inset-1 bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl blur opacity-20 dark:opacity-10" />
57-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
57+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
5858
<div className="flex items-baseline gap-3 mb-4 sm:mb-6">
5959
<div className="p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg flex-shrink-0 -mt-0.5">
6060
<svg className="w-5 h-5 sm:w-6 sm:h-6 text-blue-600 dark:text-blue-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">

src/app/docs/getting-started/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function GettingStartedPage() {
3232
{/* Prerequisites */}
3333
<AnimatedSection direction="up" delay={100}>
3434
<div className="mb-12">
35-
<div className="border border-gray-200 dark:border-gray-800 rounded-xl p-6 bg-white dark:bg-gray-900">
35+
<div className="border border-gray-200 dark:border-gray-800 rounded-xl p-6 bg-theme-primary">
3636
<div className="flex items-baseline gap-3 mb-4">
3737
<div className="p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg flex-shrink-0">
3838
<svg className="w-5 h-5 text-blue-600 dark:text-blue-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -70,7 +70,7 @@ export default function GettingStartedPage() {
7070
<p className={`text-sm ${docsBodyTextClass} mb-3`}>Try it now (no install required):</p>
7171
<div className="relative">
7272
<CopyButton text="npx logicstamp-context context" className="absolute top-2 right-2" />
73-
<code className="block text-gray-900 dark:text-gray-100 font-mono text-sm p-4 bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-700 rounded-lg">
73+
<code className="block text-gray-900 dark:text-gray-100 font-mono text-sm p-4 bg-theme-primary border border-gray-200 dark:border-gray-700 rounded-lg">
7474
npx logicstamp-context context
7575
</code>
7676
</div>

src/app/docs/guides/best-practices/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function BestPracticesPage() {
3232
<AnimatedSection direction="up" delay={100}>
3333
<div className="relative">
3434
<div className="absolute -inset-1 bg-gradient-to-r from-amber-500 to-pink-500 rounded-2xl blur opacity-20 dark:opacity-10" />
35-
<div className="relative bg-white dark:bg-gray-900 border border-amber-200 dark:border-amber-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
35+
<div className="relative bg-theme-primary border border-amber-200 dark:border-amber-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
3636
<h2 className="text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white mb-3 sm:mb-4">
3737
Use the Right Context Files in Prompts
3838
</h2>
@@ -84,7 +84,7 @@ export default function BestPracticesPage() {
8484
<AnimatedSection direction="up" delay={200}>
8585
<div className="relative">
8686
<div className="absolute -inset-1 bg-gradient-to-r from-indigo-600 to-blue-600 rounded-2xl blur opacity-20 dark:opacity-10" />
87-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
87+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
8888
<h2 className="text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white mb-3 sm:mb-4">
8989
Keep Context Fresh After Refactors
9090
</h2>
@@ -140,7 +140,7 @@ export default function BestPracticesPage() {
140140
<AnimatedSection direction="up" delay={300}>
141141
<div className="relative">
142142
<div className="absolute -inset-1 bg-gradient-to-r from-emerald-600 to-teal-600 rounded-2xl blur opacity-20 dark:opacity-10" />
143-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
143+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
144144
<h2 className="text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white mb-3 sm:mb-4">
145145
Choose the Right Code Inclusion Mode
146146
</h2>
@@ -251,7 +251,7 @@ export default function BestPracticesPage() {
251251
<AnimatedSection direction="up" delay={325}>
252252
<div className="relative mb-8 sm:mb-12 lg:mb-16">
253253
<div className="absolute -inset-1 bg-gradient-to-r from-blue-600 to-cyan-600 rounded-2xl blur opacity-20 dark:opacity-10" />
254-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
254+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
255255
<h2 className="text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white mb-3 sm:mb-4">
256256
Use Compare Modes Before Generating Context
257257
</h2>
@@ -315,7 +315,7 @@ export default function BestPracticesPage() {
315315
<AnimatedSection direction="up" delay={400}>
316316
<div className="relative mb-8 sm:mb-12 lg:mb-16">
317317
<div className="absolute -inset-1 bg-gradient-to-r from-red-600 to-orange-600 rounded-2xl blur opacity-20 dark:opacity-10" />
318-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
318+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
319319
<div className="flex items-baseline gap-3 mb-4 sm:mb-6">
320320
<div className="p-2 bg-red-100 dark:bg-red-900/30 rounded-lg flex-shrink-0 -mt-0.5">
321321
<svg className="w-5 h-5 sm:w-6 sm:h-6 text-red-600 dark:text-red-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -407,7 +407,7 @@ export default function BestPracticesPage() {
407407
<AnimatedSection direction="up" delay={500}>
408408
<div className="relative mb-8 sm:mb-12 lg:mb-16">
409409
<div className="absolute -inset-1 bg-gradient-to-r from-purple-600 to-pink-600 rounded-2xl blur opacity-20 dark:opacity-10" />
410-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
410+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
411411
<h2 className="text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white mb-3 sm:mb-4">
412412
Integrate LogicStamp Into Your Workflow
413413
</h2>

src/app/docs/guides/llm-context/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default function LlmContextPage() {
6060
<AnimatedSection direction="up" delay={100}>
6161
<div className="relative mb-8 sm:mb-12 lg:mb-16">
6262
<div className="absolute -inset-1 bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl blur opacity-20 dark:opacity-10" />
63-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
63+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
6464
<div className="flex items-baseline gap-3 mb-4 sm:mb-6">
6565
<div className="p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg flex-shrink-0 -mt-0.5">
6666
<svg className="w-5 h-5 sm:w-6 sm:h-6 text-blue-600 dark:text-blue-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -116,7 +116,7 @@ export default function LlmContextPage() {
116116
<AnimatedSection direction="up" delay={200}>
117117
<div className="relative mb-8 sm:mb-12 lg:mb-16">
118118
<div className="absolute -inset-1 bg-gradient-to-r from-purple-600 to-pink-600 rounded-2xl blur opacity-20 dark:opacity-10" />
119-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
119+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
120120
<div className="flex items-baseline gap-3 mb-4 sm:mb-6">
121121
<div className="p-2 bg-purple-100 dark:bg-purple-900/30 rounded-lg flex-shrink-0 -mt-0.5">
122122
<svg className="w-5 h-5 sm:w-6 sm:h-6 text-purple-600 dark:text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -157,7 +157,7 @@ export default function LlmContextPage() {
157157
<AnimatedSection direction="up" delay={250}>
158158
<div className="relative mb-8 sm:mb-12 lg:mb-16">
159159
<div className="absolute -inset-1 bg-gradient-to-r from-green-600 to-emerald-600 rounded-2xl blur opacity-20 dark:opacity-10" />
160-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
160+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
161161
<div className="flex items-baseline gap-3 mb-4 sm:mb-6">
162162
<div className="p-2 bg-green-100 dark:bg-green-900/30 rounded-lg flex-shrink-0 -mt-0.5">
163163
<svg className="w-5 h-5 sm:w-6 sm:h-6 text-green-600 dark:text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -213,7 +213,7 @@ export default function LlmContextPage() {
213213
<AnimatedSection direction="up" delay={300}>
214214
<div className="relative mb-8 sm:mb-12 lg:mb-16">
215215
<div className="absolute -inset-1 bg-gradient-to-r from-indigo-600 to-blue-600 rounded-2xl blur opacity-20 dark:opacity-10" />
216-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
216+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
217217
<div className="flex items-baseline gap-3 mb-4 sm:mb-6">
218218
<div className="p-2 bg-indigo-100 dark:bg-indigo-900/30 rounded-lg flex-shrink-0 -mt-0.5">
219219
<svg className="w-5 h-5 sm:w-6 sm:h-6 text-indigo-600 dark:text-indigo-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -260,7 +260,7 @@ export default function LlmContextPage() {
260260
<AnimatedSection direction="up" delay={350}>
261261
<div className="relative mb-8 sm:mb-12 lg:mb-16">
262262
<div className="absolute -inset-1 bg-gradient-to-r from-amber-600 to-orange-600 rounded-2xl blur opacity-20 dark:opacity-10" />
263-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
263+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
264264
<div className="flex items-baseline gap-3 mb-4 sm:mb-6">
265265
<div className="p-2 bg-amber-100 dark:bg-amber-900/30 rounded-lg flex-shrink-0 -mt-0.5">
266266
<svg className="w-5 h-5 sm:w-6 sm:h-6 text-amber-600 dark:text-amber-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -301,7 +301,7 @@ export default function LlmContextPage() {
301301
<AnimatedSection direction="up" delay={400}>
302302
<div className="relative mb-8 sm:mb-12 lg:mb-16">
303303
<div className="absolute -inset-1 bg-gradient-to-r from-teal-600 to-cyan-600 rounded-2xl blur opacity-20 dark:opacity-10" />
304-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
304+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
305305
<div className="flex items-baseline gap-3 mb-4 sm:mb-6">
306306
<div className="p-2 bg-teal-100 dark:bg-teal-900/30 rounded-lg flex-shrink-0 -mt-0.5">
307307
<svg className="w-5 h-5 sm:w-6 sm:h-6 text-teal-600 dark:text-teal-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">

src/app/docs/guides/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function GuidesHomePage() {
6464
<AnimatedSection direction="up" delay={100}>
6565
<div className="relative mb-8 sm:mb-12">
6666
<div className="absolute -inset-1 bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl blur opacity-20 dark:opacity-10" />
67-
<div className="relative bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
67+
<div className="relative bg-theme-primary border border-gray-200 dark:border-gray-800 rounded-2xl p-4 sm:p-6 lg:p-8 shadow-xl">
6868
<div className="flex items-baseline gap-3 mb-4 sm:mb-6">
6969
<div className="p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg flex-shrink-0 -mt-0.5">
7070
<svg className="w-5 h-5 sm:w-6 sm:h-6 text-blue-600 dark:text-blue-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">

0 commit comments

Comments
 (0)