Files
2026-08-13 16:44:30 -04:00

59 lines
1.3 KiB
CSS

@import "tailwindcss";
/* Manual (class-based) dark mode toggle, independent of OS preference. See
ThemeToggle.tsx — the ".dark" class is applied to <html> and persisted. */
@custom-variant dark (&:where(.dark, .dark *));
:root {
color-scheme: light;
--background: #ffffff;
--foreground: #171717;
}
.dark {
color-scheme: dark;
--background: #0a0a0a;
--foreground: #ededed;
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
body {
background: var(--background);
color: var(--foreground);
font-family: var(--font-sans), Arial, Helvetica, sans-serif;
}
::selection {
background-color: var(--color-indigo-200, #c7d2fe);
color: var(--color-indigo-900, #312e81);
}
.dark ::selection {
background-color: var(--color-indigo-800, #3730a3);
color: var(--color-indigo-100, #e0e7ff);
}