fix(FN-3725): define accent text token across dashboard themes
- Add --accent-text token definitions in global and per-theme CSS blocks for consistent readable foreground contrast - Extend theme coverage tests to assert accent text token presence across generated theme variants - Add a changeset for @runfusion/fusion documenting the theme token fix - Update agent guidance reference to include the new token requirement Fusion-Task-Id: FN-3725
This commit is contained in:
@@ -697,6 +697,7 @@ Semantic status colors:
|
||||
| `--color-warning` | Warning amber |
|
||||
| `--color-info` | Info blue |
|
||||
| `--color-muted` | Muted gray |
|
||||
| `--accent-text` | Foreground text/icon color on `--accent` surfaces |
|
||||
|
||||
**Rule:** Never use raw hex or `rgba(...)` for colors in component styles. Use `var(--token)` or `color-mix(in srgb, var(--color) X%, transparent)` for translucent backgrounds. The only place hardcoded colors are acceptable is inside `:root` theme blocks defining tokens.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user