Add dark mode #28
Labels
No labels
Bug
BuildIssue
Claude-fixed
Enhancement
In Progress
Low priority
On Hold
Rejected
Security
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
keyop-go/nfq_forwarder#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Dark mode controls should be visible at all times, including before logging in.
Test that all content is properly visible in both dark and light modes.
Dark mode should persist between sessions via cookies.
changed the description
Plan:
prefers-color-scheme, but there's no explicit control or persistence - this ticket adds both.light/darkcookie (not session-scoped, so it survives login/logout and works pre-login) and updates the page instantly via JS.data-themeon<html>directly in the server-rendered response - this avoids any flash of the wrong theme while JS loads, since the correct theme is already correct on the very first byte sent.:root[data-theme="dark"]/:root[data-theme="light"]overrides that take precedence over the OS-preference media query once a user has explicitly chosen.