Add the logo to login/setup pages and raise light-mode contrast

The brand logo only appeared in the sidebar, so unauthenticated pages
(login, first-run setup, create-user) had no branding at all. Added an
.auth-brand block to base.html's shared unauthenticated shell so all
three get it automatically, and generalized the theme-swapped logo
show/hide rules (previously scoped to .sidebar-brand) so the same
.brand-wordmark-dark/.brand-wordmark-light classes work in both places —
safe to de-scope since neither .sidebar-brand img nor .auth-brand img
touches `display`, so there's no repeat of the earlier specificity bug.

Raised light-mode contrast across the board (WCAG contrast vs white,
computed): --text-dim 3.64:1 -> 5.80:1 (was failing AA for normal text —
this is the timestamp/feed-name color, used constantly), --star 3.65:1 ->
5.0:1, --border 1.25:1 -> 1.58:1 (still a hairline by design, just more
visible), and widened the --bg/--bg-sidebar/--bg-row-hover/--bg-row-
selected tiers, which were previously all within a few points of white
and made the whole theme look flat.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
ksmithandClaude Sonnet 5 committed 2026-10-30 22:03:13 -06:00
1 parent 1a8ae95db0
commit 20dd61e938
2 files changed
+39 -18

No files matched your search

+33 -18
View File
@@ -25,32 +25,32 @@
:root:not([data-theme]) {
color-scheme: light;
--bg: #ffffff;
--bg-sidebar: #f4f6fa;
--bg-row-hover: #eef1f6;
--bg-row-selected: #e4edfd;
--bg-sidebar: #eef1f6;
--bg-row-hover: #e2e8f0;
--bg-row-selected: #d6e3fb;
--accent: #2f5fa8;
--accent-dark: #24497f;
--star: #b7790f;
--star: #9c6307;
--text: #0f2038;
--text-muted: #4a5568;
--text-dim: #7c8798;
--border: #e2e6ed;
--text-dim: #5c6677;
--border: #c7cedb;
}
}
:root[data-theme="light"] {
color-scheme: light;
--bg: #ffffff;
--bg-sidebar: #f4f6fa;
--bg-row-hover: #eef1f6;
--bg-row-selected: #e4edfd;
--bg-sidebar: #eef1f6;
--bg-row-hover: #e2e8f0;
--bg-row-selected: #d6e3fb;
--accent: #2f5fa8;
--accent-dark: #24497f;
--star: #b7790f;
--star: #9c6307;
--text: #0f2038;
--text-muted: #4a5568;
--text-dim: #7c8798;
--border: #e2e6ed;
--text-dim: #5c6677;
--border: #c7cedb;
}
* {
@@ -163,31 +163,46 @@ form p {
margin: 0 auto;
}
.sidebar-brand .brand-wordmark-dark {
/* Theme-swapped logo images — used in the sidebar brand and on the
auth pages (login/setup/create user). Neither .sidebar-brand img nor
.auth-brand img sets `display`, so these stay the only rule touching
it and can't lose a specificity fight with the sizing rules. */
.brand-wordmark-dark {
display: block;
}
.sidebar-brand .brand-wordmark-light {
.brand-wordmark-light {
display: none;
}
@media (prefers-color-scheme: light) {
:root:not([data-theme]) .sidebar-brand .brand-wordmark-dark {
:root:not([data-theme]) .brand-wordmark-dark {
display: none;
}
:root:not([data-theme]) .sidebar-brand .brand-wordmark-light {
:root:not([data-theme]) .brand-wordmark-light {
display: block;
}
}
:root[data-theme="light"] .sidebar-brand .brand-wordmark-dark {
:root[data-theme="light"] .brand-wordmark-dark {
display: none;
}
:root[data-theme="light"] .sidebar-brand .brand-wordmark-light {
:root[data-theme="light"] .brand-wordmark-light {
display: block;
}
.auth-brand {
display: flex;
justify-content: center;
margin-bottom: 1.5rem;
}
.auth-brand img {
height: 110px;
width: auto;
}
.theme-switcher {
display: flex;
gap: 0.25rem;
+6
View File
@@ -38,6 +38,12 @@
{% endif %}
<main class="{% if user.is_authenticated %}app-content{% else %}auth-content{% endif %}">
{% if not user.is_authenticated %}
<div class="auth-brand">
<img src="{% static 'img/brand-full-dark.png' %}" alt="Evection" class="brand-wordmark-dark">
<img src="{% static 'img/brand-full-light.png' %}" alt="Evection" class="brand-wordmark-light">
</div>
{% endif %}
{% block content %}{% endblock %}
</main>