feat: use CSS prefers-color-scheme for dark mode (no JS)
- Remove inline JS that sets data-theme from localStorage - Use @media (prefers-color-scheme: dark) in CSS for automatic dark mode - Remove JS-dependent theme toggle from preferences - Theme now follows system preference automatically Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8f2fd671f1
commit
056d2d1175
3 changed files with 3 additions and 31 deletions
|
|
@ -24,7 +24,7 @@
|
|||
--font-mono: "IBM Plex Mono", ui-monospace, monospace;
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
@media (prefers-color-scheme: dark) {
|
||||
--bg: #0f0f0f;
|
||||
--bg-secondary: #1a1a1a;
|
||||
--bg-tertiary: #242424;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue