chore(tokens): migrate hardcoded hex colors to design tokens - #19
Open
juancarlosbs wants to merge 7 commits into
Open
chore(tokens): migrate hardcoded hex colors to design tokens#19juancarlosbs wants to merge 7 commits into
juancarlosbs wants to merge 7 commits into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013r5tZbG4bjfbK1aqj1SyzQ
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.
Resolves the tech debt deferred from PR #15 (CodeRabbit finding on
docs/ui.md): three components carried hardcoded hex colors in violation of the token-only styling convention.Spec:
docs/superpowers/specs/2026-07-27-hex-to-tokens-design.md· Plan:docs/superpowers/plans/2026-07-27-hex-to-tokens.mdsrc/App.css(@theme):--color-env-development/staging/production/neutral, keeping the exact traffic-light values the dots already use.envDotClass()helper insrc/lib/envColor.tsreplaces the environment-color map that was duplicated inEnvSelectorandSettingsDialog; dots now usebg-env-*classes instead of inline styles.EnvSelector,SettingsDialog, andWorkspaceSwitchermigrated to existing surface tokens (bg-card,bg-secondary,border-border,bg-sidebar-accent) — all value-identical swaps.#141414→bg-sidebar(#18181b), an imperceptible shift approved in the spec to avoid a single-use token.--env-*family added todocs/stack.mdanddocs/ui.md.Verification: hex sweep over
src/(excludingApp.css/assets) returns empty ·pnpm test111 passed ·tsc --noEmitclean ·vite buildoutput confirmed to contain the generatedbg-env-*utilities. Built task-by-task with per-task review plus a final whole-branch review (clean).🤖 Generated with Claude Code
https://claude.ai/code/session_013r5tZbG4bjfbK1aqj1SyzQ