feat: add theme switcher, dark theme

This commit is contained in:
2026-08-25 14:32:13 +05:00
parent 5b22409d41
commit f1f5bd4409
8 changed files with 274 additions and 5 deletions
+22 -1
View File
@@ -1,4 +1,6 @@
:root {
color-scheme: light;
--bg: #f6f7f9;
--surface: #ffffff;
--text: #1b1e24;
@@ -6,6 +8,7 @@
--accent: #2563eb;
--accent-hover: #1d4ed8;
--accent-contrast: #ffffff;
--link: var(--accent);
--border: #dfe2e8;
--danger: #e5484d;
--danger-strong: #b3261e;
@@ -40,6 +43,24 @@
--font-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
}
[data-theme='dark'] {
color-scheme: dark;
--bg: #12151a;
--surface: #1b2027;
--text: #e6e9ee;
--text-muted: #98a1ad;
--accent-hover: #4c85f0;
--link: #6ea0ff;
--border: #303842;
--danger: #ff7479;
--danger-strong: #ff8589;
--check-a: #232830;
--check-b: #171b21;
--shadow-card: 0 4px 14px rgb(0 0 0 / 45%);
}
*,
*::before,
*::after {
@@ -79,7 +100,7 @@ label {
}
a {
color: var(--accent);
color: var(--link);
text-decoration: none;
}