feat: generate preset-aware dark theme variables
This commit is contained in:
1 parent
48c596cf41
commit
3fd2a27719
4 files changed
+77
-14
No files matched your search
+1
-12
@@ -86,22 +86,11 @@
|
||||
--border-subtle: color-mix(in srgb, var(--color-text-muted) 18%, transparent);
|
||||
}
|
||||
|
||||
/* Dark mode (toggled by html.dark; wins over :root + ThemeVars via specificity). */
|
||||
/* Dark mode colors are generated by ThemeVars from the selected preset. */
|
||||
html.dark {
|
||||
--color-background: #0b0d14;
|
||||
--color-surface: #141820;
|
||||
--color-dropdown: #1d222b;
|
||||
--color-navbar: #141820;
|
||||
--color-navbar-text: #e5e7eb;
|
||||
--color-text: #e5e7eb;
|
||||
--color-text-muted: #94a3b8;
|
||||
--color-text-readable: var(--color-text);
|
||||
--color-text-muted-readable: var(--color-text-muted);
|
||||
--color-primary-readable: var(--color-text);
|
||||
--color-accent-readable: var(--color-text);
|
||||
--color-navbar-text-readable: var(--color-navbar-text);
|
||||
--link-color-readable: var(--color-text);
|
||||
--link-hover-color-readable: var(--color-text);
|
||||
}
|
||||
html.dark input,
|
||||
html.dark select,
|
||||
|
||||
Reference in new issue
Block a user