frontend: one glass token pair in place of three copied light and dark blocks
Headers, badges, terminal panes, the message box and the dashboard's bars read --glass-clear and --glass-filter from theme.css; the light palette (colors.css) and the solid-backgrounds setting set them. Each surface keeps a single rule, the per-theme override blocks and the quiet-badge specificity workaround go, and the dashboard and agent page now follow the light palette like the swarm UI.
This commit is contained in:
parent
2a719a52e8
commit
1ca82b3e09
1 changed files with 93 additions and 122 deletions
|
|
@ -59,6 +59,17 @@
|
|||
2.4:1 against its card background, short of the 4.5:1 AA asks for. A palette
|
||||
that sets neither keeps the shares above. */
|
||||
|
||||
/* The frosted-glass surfaces (headers, badges, terminal panes, the message
|
||||
box) are see-through over a blur on the dark palette and solid on the light
|
||||
one, where bright content behind them would wash the text out.
|
||||
`--glass-clear` is 1 for glass and 0 for solid; a surface keeps
|
||||
`calc(100% - its-clear-share * var(--glass-clear))` of its fill colour, and
|
||||
`--glass-filter` is its `backdrop-filter`. A light palette sets
|
||||
`--palette-glass-clear` and `--palette-glass-filter` in `colors.css`, and
|
||||
the solid-backgrounds setting sets the two final tokens itself. */
|
||||
--glass-clear: var(--palette-glass-clear, 1);
|
||||
--glass-filter: var(--palette-glass-filter, blur(8px) saturate(130%));
|
||||
|
||||
/* `--muted`, above, is mixed toward `--base00`/`--bg` — correct for
|
||||
dimmed text on the page background, wrong for dimmed text sitting on
|
||||
an elevated fill like `--purple-dim` (badge/dropdown-item
|
||||
|
|
|
|||
Loading…
Reference in a new issue