feat(frontend): user-switchable light/dark theme
Build Art IoT image / build-and-publish (push) Successful in 21s
Build Art IoT image / build-and-publish (push) Successful in 21s
- dark tokens move from prefers-color-scheme to :root[data-theme="dark"]; light is the default for everyone regardless of OS preference - choice persisted in localStorage (artiot-theme), applied to <html> at module load so the login screen themes before first paint - Account page gains an Appearance section with a squared slide switch; meta theme-color follows the active theme
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<meta name="theme-color" content="#171d1b" />
|
||||
<meta name="theme-color" content="#f9faf9" />
|
||||
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
<title>Art IoT</title>
|
||||
|
||||
Reference in New Issue
Block a user