frontend: remove the stylix overlay and add hyperhive and Catppuccin light and dark themes
This commit is contained in:
parent
989d1d578c
commit
91e2d26133
1 changed files with 486 additions and 413 deletions
|
|
@ -39,7 +39,7 @@ repeated here.
|
|||
generation, mainly for shape/elevation ideas. Colour is dynamic too —
|
||||
autoderived shades (mixing, lighter/darker) are fair game, same as
|
||||
Material's own approach — but every derived colour still traces back
|
||||
to the base16/stylix contract below, never an independent source.
|
||||
to the base16 contract below, never an independent source.
|
||||
|
||||
## Motion
|
||||
|
||||
|
|
@ -64,17 +64,16 @@ The mechanical contract (base16 slots, semantic vars, what a page's CSS
|
|||
is and isn't allowed to reference) lives in `docs/4-implementation/web-ui/css-vars.md` —
|
||||
read that for the how. This section is the _policy_ layered on top:
|
||||
|
||||
- **User-theming compatible by construction.** The whole point of the
|
||||
base16/`colors.css` swap contract is that a user's own theme (stylix
|
||||
today) takes over with zero swarm-ui code changes. Don't build
|
||||
- **Theme-agnostic by construction.** The whole point of the
|
||||
base16/`colors.css` contract is that a new theme is 16 colours with zero
|
||||
swarm-ui code changes. Don't build
|
||||
anything that assumes a specific palette's exact colours (contrast
|
||||
ratios, "this accent is always purple") beyond what the semantic var
|
||||
names promise.
|
||||
- **stylix wins outright when it's active, no in-between state.** When
|
||||
an operator has stylix supplying swarm-ui's palette, that palette is
|
||||
authoritative — swarm-ui's own light/dark preference (below) doesn't
|
||||
override it. This is a deliberate simplification, not a limitation to
|
||||
fix: a stylix-using operator has already made their choice.
|
||||
- **Every theme is light or dark.** A theme declares its scheme, so the
|
||||
browser's own controls, scrollbars and dialog backdrops follow it. The
|
||||
user's pick wins over the OS preference; **auto** follows the OS and
|
||||
chooses hyperhive light or hyperhive dark.
|
||||
- **Light theme is accessibility, not a cosmetic extra.** Some people
|
||||
need light for contrast/low-vision reasons, others need dark for
|
||||
photosensitivity — there's no universally correct default. The OS
|
||||
|
|
|
|||
Loading…
Reference in a new issue