Skip to content

Commit

Permalink
Introduce basic dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Jan 20, 2025
1 parent 50e16cb commit d06459f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/navigation/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const Navbar = () => {
<nav
role="navigation"
aria-label="Main"
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"
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"
>
<Link
to="/"
Expand Down
16 changes: 15 additions & 1 deletion web/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@
--ring: 215 20.2% 65.1%;
--radius: 0.5rem;
}

@media (prefers-color-scheme: dark) {
:root {
--background: 222.2 47.4% 11.2%;
--foreground: 210 40% 98%;
--card: 222.2 47.4% 11.2%;
--card-foreground: 210 40% 98%;
--border: 214.3 31.8% 15.3%;
}
}
}

html, body {
@apply bg-background text-foreground;
}

#root {
Expand All @@ -49,7 +63,7 @@
}

.card {
@apply border border-solid border-neutral-200 rounded-md;
@apply border border-solid rounded-md;
/* @apply w-full gap-4 border border-t-4 shadow-sm rounded-md pt-4; */
}
.card:not(.no-padding) {
Expand Down
3 changes: 3 additions & 0 deletions web/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export default {
},
},
},
borderColor: {
DEFAULT: 'hsl(var(--border))',
}
},
},
plugins: [require('tailwindcss-animate')],
Expand Down

0 comments on commit d06459f

Please sign in to comment.