feat(wip): load themes dynamically from static/themes/*.css

This commit is contained in:
frosty
2026-05-10 00:00:08 -04:00
parent ba6dae676a
commit 3c856f93ed
14 changed files with 176 additions and 65 deletions

10
static/themes/dark.css Normal file
View File

@@ -0,0 +1,10 @@
:root {
--bg-main: #121212;
--bg-card: #1e1e1e;
--border: #333333;
--text-primary: #ffffff;
--text-secondary: #a0a0a0;
--text-muted: #d1d1d1;
--accent: #e2e2e2;
--accent-glow: rgba(255,255,255,0.1);
}

10
static/themes/light.css Normal file
View File

@@ -0,0 +1,10 @@
:root {
--bg-main: #ffffff;
--bg-card: #f8f9fa;
--border: #e0e0e0;
--text-primary: #1a1a1a;
--text-secondary: #5f6368;
--text-muted: #757575;
--accent: #202124;
--accent-glow: rgba(0,0,0,0.05);
}

22
static/themes/system.css Normal file
View File

@@ -0,0 +1,22 @@
:root {
--bg-main: #ffffff;
--bg-card: #f8f9fa;
--border: #e0e0e0;
--text-primary: #1a1a1a;
--text-secondary: #5f6368;
--text-muted: #757575;
--accent: #202124;
--accent-glow: rgba(0,0,0,0.05);
}
@media (prefers-color-scheme: dark) {
:root {
--bg-main: #121212;
--bg-card: #1e1e1e;
--border: #333333;
--text-primary: #ffffff;
--text-secondary: #a0a0a0;
--text-muted: #d1d1d1;
--accent: #e2e2e2;
--accent-glow: rgba(255,255,255,0.1);
}
}