Skip to content

feat(styles): primitive color layer and JS color guardrails - #57

Merged
LESANF merged 1 commit into
0.0.9from
feat/color-primitives
Sep 22, 2026
Merged

LESANF merged 1 commit into
0.0.9from
feat/color-primitives

Conversation

@LESANF

@LESANF LESANF commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Color values now live only in src/styles/tokens. colors.css holds brand primitives under @theme static and registers the semantic tokens; semantic.css light/dark blocks reference primitives only. Tab label colors become tokens read through useCSSVariable, and the tabs layout drops its fallback hex since static variables always exist.

Guardrails: ESLint fails on hex literals and Uniwind.getCSSVariable under src/ (example screens listed in LEGACY_HEX_FILES), and the prompt hook routes color questions to docs/colors-in-js.md.

Verified: check-all green (59 tests), Android export keeps the JS-only variables in the bundle.

🤖 Generated with Claude Code

colors.css now holds the brand primitives under @theme static and
registers the semantic tokens; semantic.css light/dark values reference
primitives only. A new app changes the primitives and nothing else.
@theme static keeps variables that only JS reads in the bundle, so the
tab bar drops its fallback hex. Tab label colors become tokens read with
useCSSVariable so they follow the theme.

ESLint now fails on hex literals and Uniwind.getCSSVariable under src/;
remaining example screens are listed in LEGACY_HEX_FILES. The prompt hook
routes color questions to docs/colors-in-js.md, which records the
decision, the light-only variant, and the rejected alternatives.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@LESANF
LESANF merged commit 95071ef into 0.0.9 Sep 22, 2026
@LESANF
LESANF deleted the feat/color-primitives branch September 22, 2026 00:49
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