Skip to content

Commit d06459f

Browse files
committed
Introduce basic dark theme
1 parent 50e16cb commit d06459f

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

web/src/components/navigation/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const Navbar = () => {
109109
<nav
110110
role="navigation"
111111
aria-label="Main"
112-
className="fixed bottom-0 z-20 flex h-16 w-full items-center justify-between border-t bg-white md:sticky md:top-0 md:h-9 md:border-b"
112+
className="bg-background fixed bottom-0 z-20 flex h-16 w-full items-center justify-between border-t md:sticky md:top-0 md:h-9 md:border-b"
113113
>
114114
<Link
115115
to="/"

web/src/styles/index.css

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@
2828
--ring: 215 20.2% 65.1%;
2929
--radius: 0.5rem;
3030
}
31+
32+
@media (prefers-color-scheme: dark) {
33+
:root {
34+
--background: 222.2 47.4% 11.2%;
35+
--foreground: 210 40% 98%;
36+
--card: 222.2 47.4% 11.2%;
37+
--card-foreground: 210 40% 98%;
38+
--border: 214.3 31.8% 15.3%;
39+
}
40+
}
41+
}
42+
43+
html, body {
44+
@apply bg-background text-foreground;
3145
}
3246

3347
#root {
@@ -49,7 +63,7 @@
4963
}
5064

5165
.card {
52-
@apply border border-solid border-neutral-200 rounded-md;
66+
@apply border border-solid rounded-md;
5367
/* @apply w-full gap-4 border border-t-4 shadow-sm rounded-md pt-4; */
5468
}
5569
.card:not(.no-padding) {

web/tailwind.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ export default {
5151
},
5252
},
5353
},
54+
borderColor: {
55+
DEFAULT: 'hsl(var(--border))',
56+
}
5457
},
5558
},
5659
plugins: [require('tailwindcss-animate')],

0 commit comments

Comments
 (0)