Skip to content

Commit 7c1b1ab

Browse files
committed
updated theme
1 parent 74e0d8b commit 7c1b1ab

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

content/docs/install/nextjs.mdx

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ npx shadcn@latest init
1616

1717
### 2. Install utilities
1818

19-
Many components rely on the `cn` utility function. You can install it using the following command:
19+
If the `libs/utils.ts` file is not present in your project, you can install it using the following command:
2020

2121
```sh
2222
npx shadcn@latest add https://retroui.dev/r/utils.json
@@ -130,6 +130,9 @@ Save your theme as CSS variables in `global.css`:
130130
--color-background: var(--background);
131131
--color-foreground: var(--foreground);
132132
--color-primary: var(--primary);
133+
--color-primary-foreground: var(--primary-foreground);
134+
--color-secondary: var(--secondary);
135+
--color-secondary-foreground: var(--secondary-foreground);
133136
--color-primary-hover: var(--primary-hover);
134137
--color-card: var(--card);
135138
--color-card-foreground: var(--card-foreground);
@@ -150,6 +153,8 @@ Save your theme as CSS variables in `global.css`:
150153
--primary: #ffdb33;
151154
--primary-hover: #ffcc00;
152155
--primary-foreground: #000;
156+
--secondary: #000;
157+
--secondary-foreground: #fff;
153158
--muted: #aeaeae;
154159
--muted-foreground: #5a5a5a;
155160
--accent: #fae583;
@@ -158,6 +163,25 @@ Save your theme as CSS variables in `global.css`:
158163
--destructive-foreground: #fff;
159164
--border: #000;
160165
}
166+
167+
.dark {
168+
--background: #000000;
169+
--foreground: #eaeaea;
170+
--card: #1e1e1e;
171+
--card-foreground: #eaeaea;
172+
--primary: #ffcc00;
173+
--primary-hover: #ffdb33;
174+
--primary-foreground: #000;
175+
--secondary: #fff;
176+
--secondary-foreground: #000;
177+
--muted: #5a5a5a;
178+
--muted-foreground: #aeaeae;
179+
--accent: #ffd966;
180+
--accent-foreground: #000;
181+
--destructive: #e63946;
182+
--destructive-foreground: #fff;
183+
--border: #eee;
184+
}
161185
```
162186

163187
<br />

content/docs/install/vite.mdx

Whitespace-only changes.

0 commit comments

Comments
 (0)