swarm-ui: dimmed text on the light palette keeps enough of the text colour to pass AA contrast
This commit is contained in:
parent
72ffe3b187
commit
b82d4d4722
1 changed files with 19 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue