Skip to content

Commit 73e8be9

Browse files
committed
updated dark theme
1 parent 121a18d commit 73e8be9

File tree

7 files changed

+42
-41
lines changed

7 files changed

+42
-41
lines changed

app/global.css

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,25 @@
5353
--border: #000;
5454
--background-image: url("/images/banner_void_2.svg");
5555
}
56+
5657
.dark {
57-
--background: #000000;
58-
--foreground: #eaeaea;
59-
--card: #1e1e1e;
60-
--card-foreground: #eaeaea;
61-
--primary: #ffcc00;
62-
--primary-hover: #ffdb33;
58+
--background: #1a1a1a;
59+
--foreground: #f5f5f5;
60+
--card: #242424;
61+
--card-foreground: #f5f5f5;
62+
--primary: #ffdb33;
63+
--primary-hover: #ffcc00;
6364
--primary-foreground: #000;
64-
--secondary: #fff;
65-
--secondary-foreground: #000;
66-
--muted: #5a5a5a;
67-
--muted-foreground: #aeaeae;
68-
--accent: #ffd966;
65+
--secondary: #3a3a3a;
66+
--secondary-foreground: #f5f5f5;
67+
--muted: #3f3f46;
68+
--muted-foreground: #a0a0a0;
69+
--accent: #fae583;
6970
--accent-foreground: #000;
7071
--destructive: #e63946;
7172
--destructive-foreground: #fff;
72-
--border: #eee;
73-
--background-image: url("/images/bg_void_3.png");
73+
--border: #3a3a3a;
74+
--background-image: url("/images/bg_void_3.svg"); /* Optional: A different image for dark mode */
7475
}
7576

7677
.bg-image {

components/retroui/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Check } from "lucide-react";
66
const checkboxVariants = cva("border-2", {
77
variants: {
88
variant: {
9-
default: "data-[state=checked]:bg-primary",
9+
default: "data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground ",
1010
outline: "",
1111
solid:
1212
"data-[state=checked]:bg-foreground data-[state=checked]:text-background",

components/retroui/Select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const SelectItem = ({
7272
}: SelectPrimitive.SelectItemProps) => (
7373
<SelectPrimitive.Item
7474
className={cn(
75-
"relative flex w-full cursor-default select-none items-center py-1.5 px-2 outline-hidden hover:bg-primary data-disabled:pointer-events-none data-disabled:opacity-50",
75+
"relative flex w-full cursor-default select-none items-center py-1.5 px-2 outline-hidden hover:bg-primary hover:text-primary-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
7676
className,
7777
)}
7878
{...props}

components/retroui/Tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const TabsTrigger = ({ children, className, ...props }: ITabsTrigger) => {
3535
return (
3636
<Tab
3737
className={cn(
38-
"px-4 py-1 border-2 border-transparent data-selected:border-border data-selected:bg-primary data-selected:font-semibold focus:outline-hidden",
38+
"px-4 py-1 border-2 border-transparent data-selected:border-border data-selected:bg-primary data-selected:text-primary-foreground data-selected:font-semibold focus:outline-hidden",
3939
className,
4040
)}
4141
{...props}

components/retroui/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const tooltipContentVariants = cva(
1212
variants: {
1313
variant: {
1414
default: "bg-background text-foreground",
15-
primary: "bg-primary text-foreground",
15+
primary: "bg-primary text-primary-foreground",
1616
solid: "bg-black text-white",
1717
},
1818
},

content/docs/install/nextjs.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,22 +157,22 @@ Save your theme as CSS variables in `global.css`:
157157
}
158158

159159
.dark {
160-
--background: #000000;
161-
--foreground: #eaeaea;
162-
--card: #1e1e1e;
163-
--card-foreground: #eaeaea;
164-
--primary: #ffcc00;
165-
--primary-hover: #ffdb33;
160+
--background: #1a1a1a;
161+
--foreground: #f5f5f5;
162+
--card: #242424;
163+
--card-foreground: #f5f5f5;
164+
--primary: #ffdb33;
165+
--primary-hover: #ffcc00;
166166
--primary-foreground: #000;
167-
--secondary: #fff;
168-
--secondary-foreground: #000;
169-
--muted: #5a5a5a;
170-
--muted-foreground: #aeaeae;
171-
--accent: #ffd966;
167+
--secondary: #3a3a3a;
168+
--secondary-foreground: #f5f5f5;
169+
--muted: #3f3f46;
170+
--muted-foreground: #a0a0a0;
171+
--accent: #fae583;
172172
--accent-foreground: #000;
173173
--destructive: #e63946;
174174
--destructive-foreground: #fff;
175-
--border: #eee;
175+
--border: #3a3a3a;
176176
}
177177
```
178178

content/docs/install/vite.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -188,22 +188,22 @@ Save your theme as CSS variables in `styles.css` file:
188188
}
189189

190190
.dark {
191-
--background: #000000;
192-
--foreground: #eaeaea;
193-
--card: #1e1e1e;
194-
--card-foreground: #eaeaea;
195-
--primary: #ffcc00;
196-
--primary-hover: #ffdb33;
191+
--background: #1a1a1a;
192+
--foreground: #f5f5f5;
193+
--card: #242424;
194+
--card-foreground: #f5f5f5;
195+
--primary: #ffdb33;
196+
--primary-hover: #ffcc00;
197197
--primary-foreground: #000;
198-
--secondary: #fff;
199-
--secondary-foreground: #000;
200-
--muted: #5a5a5a;
201-
--muted-foreground: #aeaeae;
202-
--accent: #ffd966;
198+
--secondary: #3a3a3a;
199+
--secondary-foreground: #f5f5f5;
200+
--muted: #3f3f46;
201+
--muted-foreground: #a0a0a0;
202+
--accent: #fae583;
203203
--accent-foreground: #000;
204204
--destructive: #e63946;
205205
--destructive-foreground: #fff;
206-
--border: #eee;
206+
--border: #3a3a3a;
207207
}
208208
```
209209

0 commit comments

Comments
 (0)