Skip to content

Commit 403481b

Browse files
Enhance dark theme (#274)
* feat: update tailwind.css with new dark theme colors Solves: #272 * fix: remove unnecessary class from active sidebar item styling
1 parent 7db742d commit 403481b

File tree

2 files changed

+58
-41
lines changed

2 files changed

+58
-41
lines changed

apps/evalite-ui/app/routes/__root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ const EvalSidebarItem = (props: {
250250
: "flex justify-between text-sm px-2 py-1 rounded hover:bg-foreground/10 active:bg-foreground/20 transition-colors"
251251
}
252252
activeProps={{
253-
className: "bg-foreground/20! text-foreground/80",
253+
className: "bg-foreground/20!",
254254
}}
255255
>
256256
<span>{props.variantName || props.name}</span>

apps/evalite-ui/app/tailwind.css

Lines changed: 57 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
}
5353

5454
:root {
55-
--radius: 0.625rem;
55+
--radius: 0.35rem;
5656
--background: oklch(1 0 0);
5757
--foreground: oklch(0.145 0 0);
5858
--card: oklch(1 0 0);
@@ -93,46 +93,63 @@
9393
--selection: oklch(0.145 0 0);
9494
--selection-foreground: oklch(1 0 0);
9595
}
96+
9697
.dark {
97-
--background: oklch(0.145 0 0);
98-
--foreground: oklch(0.985 0 0);
99-
--card: oklch(0.205 0 0);
100-
--card-foreground: oklch(0.985 0 0);
101-
--popover: oklch(0.269 0 0);
102-
--popover-foreground: oklch(0.985 0 0);
103-
--primary: oklch(0.922 0 0);
104-
--primary-foreground: oklch(0.205 0 0);
105-
--secondary: oklch(0.269 0 0);
106-
--secondary-foreground: oklch(0.985 0 0);
107-
--muted: oklch(0.269 0 0);
108-
--muted-foreground: oklch(0.708 0 0);
109-
--accent: oklch(0.371 0 0);
110-
--accent-foreground: oklch(0.985 0 0);
111-
--destructive: oklch(0.704 0.191 22.216);
112-
--border: oklch(1 0 0 / 10%);
113-
--input: oklch(1 0 0 / 15%);
114-
--ring: oklch(0.556 0 0);
115-
--chart-1: var(--color-blue-300);
116-
--chart-2: var(--color-blue-500);
117-
--chart-3: var(--color-blue-600);
118-
--chart-4: var(--color-blue-700);
119-
--chart-5: var(--color-blue-800);
120-
--sidebar: oklch(0.205 0 0);
121-
--sidebar-foreground: oklch(0.985 0 0);
122-
--sidebar-primary: oklch(0.488 0.243 264.376);
123-
--sidebar-primary-foreground: oklch(0.985 0 0);
124-
--sidebar-accent: oklch(0.269 0 0);
125-
--sidebar-accent-foreground: oklch(0.985 0 0);
126-
--sidebar-border: oklch(1 0 0 / 10%);
127-
--sidebar-ring: oklch(0.439 0 0);
128-
--surface: oklch(0.2 0 0);
129-
--surface-foreground: oklch(0.708 0 0);
130-
--code: var(--surface);
131-
--code-foreground: var(--surface-foreground);
132-
--code-highlight: oklch(0.27 0 0);
133-
--code-number: oklch(0.72 0 0);
134-
--selection: oklch(0.922 0 0);
135-
--selection-foreground: oklch(0.205 0 0);
98+
--background: oklch(0.2178 0 0);
99+
--foreground: oklch(0.8853 0 0);
100+
--card: oklch(0.2435 0 0);
101+
--card-foreground: oklch(0.8853 0 0);
102+
--popover: oklch(0.2435 0 0);
103+
--popover-foreground: oklch(0.8853 0 0);
104+
--primary: oklch(0.7058 0 0);
105+
--primary-foreground: oklch(0.2178 0 0);
106+
--secondary: oklch(0.3092 0 0);
107+
--secondary-foreground: oklch(0.8853 0 0);
108+
--muted: oklch(0.285 0 0);
109+
--muted-foreground: oklch(0.5999 0 0);
110+
--accent: oklch(0.3715 0 0);
111+
--accent-foreground: oklch(0.8853 0 0);
112+
--destructive: oklch(0.6591 0.153 22.1703);
113+
--destructive-foreground: oklch(1 0 0);
114+
--border: oklch(0.329 0 0);
115+
--input: oklch(0.3092 0 0);
116+
--ring: oklch(0.7058 0 0);
117+
--chart-1: oklch(0.7058 0 0);
118+
--chart-2: oklch(0.6714 0.0339 206.3482);
119+
--chart-3: oklch(0.5452 0 0);
120+
--chart-4: oklch(0.4604 0 0);
121+
--chart-5: oklch(0.3715 0 0);
122+
--sidebar: oklch(0.2393 0 0);
123+
--sidebar-foreground: oklch(0.8853 0 0);
124+
--sidebar-primary: oklch(0.7058 0 0);
125+
--sidebar-primary-foreground: oklch(0.2178 0 0);
126+
--sidebar-accent: oklch(0.3715 0 0);
127+
--sidebar-accent-foreground: oklch(0.8853 0 0);
128+
--sidebar-border: oklch(0.329 0 0);
129+
--sidebar-ring: oklch(0.7058 0 0);
130+
--font-sans: Inter, sans-serif;
131+
--font-serif: Georgia, serif;
132+
--font-mono: Fira Code, monospace;
133+
--radius: 0.35rem;
134+
--shadow-x: 0px;
135+
--shadow-y: 2px;
136+
--shadow-blur: 0px;
137+
--shadow-spread: 0px;
138+
--shadow-opacity: 0.15;
139+
--shadow-color: hsl(0 0% 20% / 0.1);
140+
--shadow-2xs: 0px 2px 0px 0px hsl(0 0% 20% / 0.07);
141+
--shadow-xs: 0px 2px 0px 0px hsl(0 0% 20% / 0.07);
142+
--shadow-sm: 0px 2px 0px 0px hsl(0 0% 20% / 0.15),
143+
0px 1px 2px -1px hsl(0 0% 20% / 0.15);
144+
--shadow: 0px 2px 0px 0px hsl(0 0% 20% / 0.15),
145+
0px 1px 2px -1px hsl(0 0% 20% / 0.15);
146+
--shadow-md: 0px 2px 0px 0px hsl(0 0% 20% / 0.15),
147+
0px 2px 4px -1px hsl(0 0% 20% / 0.15);
148+
--shadow-lg: 0px 2px 0px 0px hsl(0 0% 20% / 0.15),
149+
0px 4px 6px -1px hsl(0 0% 20% / 0.15);
150+
--shadow-xl: 0px 2px 0px 0px hsl(0 0% 20% / 0.15),
151+
0px 8px 10px -1px hsl(0 0% 20% / 0.15);
152+
--shadow-2xl: 0px 2px 0px 0px hsl(0 0% 20% / 0.38);
136153
}
137154

138155
@layer base {

0 commit comments

Comments
 (0)