ui: light theme by default (dark is opt-in)
Swaps the role of `:root` (now light) and the data-theme attribute (now `[data-theme="dark"]`) in cassandra.css, flips the localStorage fallback from 'dark' to 'light' in base/login/verify templates, and updates the theme-toggle label and the branding-consistency test selectors to match. Existing users with cassandra.theme=dark in localStorage still see dark — their explicit preference wins. Only first-time visitors and users with no stored preference shift to light. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9e058144ec
commit
89632e9937
6 changed files with 42 additions and 39 deletions
|
|
@ -16,10 +16,11 @@ detection test (`tests/test_branding_consistency.py`) parses
|
|||
`cassandra.css` and asserts every variable matches. Update both or
|
||||
neither.
|
||||
|
||||
The light theme is the *default* in emails — mail clients can't read
|
||||
`localStorage`, so we can't replicate the dashboard's user-toggled
|
||||
theme. Clients that honour `prefers-color-scheme` get the dark palette
|
||||
via media query.
|
||||
The light theme is the *default* everywhere — dashboard `:root` block,
|
||||
auth pages, and emails. Dark is opt-in via the in-app toggle (which
|
||||
sets `data-theme="dark"` on `<html>` and persists in `localStorage`).
|
||||
Mail clients that honour `prefers-color-scheme: dark` get the dark
|
||||
palette via media query.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue