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
|
|
@ -6,8 +6,8 @@
|
|||
<title>{{ BRAND_NAME }} · Verify email</title>
|
||||
<script>
|
||||
(function() {
|
||||
try { document.documentElement.dataset.theme = localStorage.getItem('cassandra.theme') || 'dark'; }
|
||||
catch (e) { document.documentElement.dataset.theme = 'dark'; }
|
||||
try { document.documentElement.dataset.theme = localStorage.getItem('cassandra.theme') || 'light'; }
|
||||
catch (e) { document.documentElement.dataset.theme = 'light'; }
|
||||
})();
|
||||
</script>
|
||||
<link rel="stylesheet" href="{{ url_for('static', path='/css/cassandra.css') }}" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue