feat(webui): Tailwind custom colors + shared nav, /work dark theme (#1627)#1631
Merged
Conversation
… /work to dark theme
Extend tailwind.config.js with custom color tokens (surface, edge, txt,
wave, state) that map to the production CSS custom properties from
style.css. This lets new consolidated pages use Tailwind utilities while
staying in the production dark theme.
Add shared nav partial (templates/partials/nav_consolidated.html) using
Tailwind utilities with production CSS variables. Wire partials into
standalone page parsing via parsePartialsInto() so standalone pages can
use {{template}} composition.
Migrate /work board and /work-item detail from standalone light-theme
Tailwind (bg-slate-50, text-slate-900) to the production dark theme
(bg-surface, text-txt) with the shared nav. Both pages now load
style.css for CSS variables + tailwind.css for utility classes.
Closes #1627
bg-slate-50 was pruned from compiled CSS after /work pages migrated to custom dark-theme tokens (bg-surface). Update the content-scan guard to check for bg-surface instead.
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.
Summary
tailwind.config.jswith custom color tokens (surface,edge,txt,wave,state) mapping to production CSS custom properties fromstyle.csstemplates/partials/nav_consolidated.html) using Tailwind utilities + production dark theme variablesparsePartialsInto()— standalone pages can now use{{template}}composition/workboard and/work-itemdetail from standalone light-theme to production dark theme with shared navstyle.css(CSS variables) +tailwind.css(utilities)Closes
#1627 (C1 of epic #1624)
Test plan
go build -tags webui ./internal/webui/compilesgolangci-lint run ./internal/webui/...passesmake tailwind-checkpasses (CSS in sync)wave serve→/workrenders dark theme with nav bar/work/{id}renders dark theme with nav bar/runsstill renders sidebar layout (no regression)/proposalsstill renders sidebar layout (no regression)🤖 Generated with Claude Code