feat: dark and light mdoe

This commit is contained in:
2026-06-06 15:33:01 +03:30
27 changed files with 594 additions and 451 deletions
+51 -13
View File
@@ -1,8 +1,7 @@
@import "tailwindcss";
@tailwind utilities;
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); */
/* Class-based dark mode (Tailwind v4): toggled by a `.dark` class on <html> */
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--color-primary-50: #f0f1ff;
@@ -14,7 +13,7 @@
--color-primary-600: #5d68e0;
--color-primary-700: #4853c4;
--color-primary-800: #343ea8;
--color-primary-900: #1f298;
--color-primary-900: #2a318c;
}
/* Dana Font Faces */
@@ -43,10 +42,16 @@
}
:root {
--background: #ffffff;
--background: #f3f4f6;
--foreground: #171717;
}
/* Dark palette is driven by the `.dark` class so the toggle controls it */
.dark {
--background: #030712;
--foreground: #ededed;
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
@@ -54,16 +59,49 @@
--font-mono: var(--font-geist-mono);
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}
body {
background: var(--background);
color: var(--foreground);
font-family: 'Dana', 'Inter', Arial, Helvetica, sans-serif;
font-weight: 400;
}
}
/* Smooth theme transition for surfaces, borders and text */
*,
*::before,
*::after {
transition-property: background-color, border-color, color, fill, stroke;
transition-duration: 200ms;
transition-timing-function: ease;
}
/* Custom scrollbar that adapts to the theme */
* {
scrollbar-width: thin;
scrollbar-color: #cbd5e1 transparent;
}
.dark * {
scrollbar-color: #374151 transparent;
}
*::-webkit-scrollbar {
width: 10px;
height: 10px;
}
*::-webkit-scrollbar-thumb {
background-color: #cbd5e1;
border-radius: 9999px;
border: 2px solid transparent;
background-clip: content-box;
}
.dark *::-webkit-scrollbar-thumb {
background-color: #374151;
}
::selection {
background-color: #c3c7ff;
color: #1f2937;
}
.dark ::selection {
background-color: #4853c4;
color: #f9fafb;
}