Open
Conversation
Introduce CSS variables (--text-bright, --status-*, --overlay) and a shared tailwind-config.js with Tailwind color aliases backed by those variables. Extract the inline Tailwind configs from login.html and setup.html into the shared file. This layer lets themes override colors in one file instead of touching every component. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Refactor all component files to use semantic color aliases (text-body, text-bright, text-fg-muted, text-fg-dim, bg-field, bg-overlay, text-status-*, bg-status-*-bg, border-status-*-border) instead of raw Tailwind gray/red/yellow/green/cyan classes. Theming now requires overriding CSS variables in theme.css only. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds a complete light theme toggled via a sun/moon button in the sidebar header. Theme choice persists in localStorage and applies before render to prevent flash. This is a practical demonstration of the semantic token system: the entire light theme is CSS variable overrides with zero component changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use prefers-color-scheme to pick the initial theme instead of hardcoding dark. A manual toggle still overrides via localStorage. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #27. Diff will shrink to 6 file changes if merged.
What this does
Adds a light theme to alphaclaw, toggled via a sun/moon button in the sidebar header. The theme choice persists in localStorage.
This is a practical demonstration of the semantic token system from #27. The entire light theme is defined in CSS variable overrides. No component files were touched.
Changes
[data-theme="light"]block overriding all CSS variables, plus light-mode overrides for hardcoded dark patterns (buttons, toggles, cards, grid texture, scrollbars)<script>to apply saved theme before render (prevents flash)Verification