Skip to content

refactor: centralize TUI color scheme with semantic tokens#568

Merged
FL4TLiN3 merged 1 commit intomainfrom
refactor/tui-color-scheme-unification
Feb 18, 2026
Merged

refactor: centralize TUI color scheme with semantic tokens#568
FL4TLiN3 merged 1 commit intomainfrom
refactor/tui-color-scheme-unification

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Add packages/tui-components/src/colors.ts with centralized semantic color tokens (primary, muted, accent, success, warn, destructive) and ThemeColor type
  • Replace all ad-hoc color string literals ("cyan", "gray", "green", "red", "yellow", "white") across 10 component files with semantic references from colors
  • Remove old StatusColor type from action-row.tsx in favor of the new ThemeColor

Test plan

  • pnpm typecheck — passes
  • pnpm test — 1091 tests pass
  • pnpm build — 23/23 packages build
  • pnpm biome check --write — clean
  • Zero remaining color=" string literals in *.tsx files

🤖 Generated with Claude Code

Replace ad-hoc color string literals across tui-components with a
centralized colors module. Introduces colors.ts with semantic tokens
(primary, muted, accent, success, warn, destructive) and ThemeColor
type, replacing the old StatusColor type.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 8fceef6 into main Feb 18, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the refactor/tui-color-scheme-unification branch February 18, 2026 04:22
@FL4TLiN3 FL4TLiN3 mentioned this pull request Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant