Watch
0
0
Fork
You've already forked hyperhive
0

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:
iris 2026-11-19 20:49:40 +01:00 • committed by mara
commit 1ca82b3e09

View file

@ -80,6 +80,15 @@ keeps 95% of its background in `--code-bg` (`--code-bg-share`), as `--crust` is
grey on a light palette and text on it fell to 2:1. A palette that sets none of these
variables, such as a generated one, keeps the dark shares.
The frosted surfaces (the headers, the badges, the terminal panes, the message box and the
dashboard's banner) read two derived variables from `theme.css`. `--glass-clear` is `1`
for glass and `0` for solid: a surface keeps `calc(100% - its-share * var(--glass-clear))`
of its fill colour. `--glass-filter` is its `backdrop-filter`: a blur on the dark palette,
`none` on the light one, where bright content behind the glass would wash the text out.
The light palette sets `--palette-glass-clear` and `--palette-glass-filter` in `colors.css`,
and the dark palette resets them; the solid-backgrounds setting sets the two derived
variables itself. A new glass surface uses the two variables and needs no theme rules of its own.
## Common mistakes
The Catppuccin colour names **don't** map 1:1 to the variable names.