Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: dimmed text on the light palette keeps enough of the text colour to pass AA contrast

This commit is contained in:
iris 2026-11-05 00:53:28 +01:00 • committed by mara
commit b82d4d4722

View file

@ -71,6 +71,12 @@ default palette). Default hexes shown are Catppuccin Mocha.
| `--muted` | `mix(base05 55.5%, base00)` | `#7f849c` | secondary / dimmed text |
| `--subtext0` | `mix(base05 77.7%, base00)` | `#a6adc8` | toolbar/status text; dimmer than `--fg`, lighter than `--muted` |
The shares in the `--muted` and `--subtext0` rows are the dark palette's. The light
palette keeps more of the text colour (85% and 93%, set in `colors.css` as
`--muted-share` and `--subtext0-share`), because the dark shares leave its dimmed
text at 2.4:1 against a card, short of the 4.5:1 AA asks for. A palette that sets
neither variable, such as a generated one, keeps the dark shares.
## Common mistakes
The Catppuccin colour names **don't** map 1:1 to the variable names.