Expand description
Palette synthesis from brand seed colors.
Given a primary (plus optional role overrides) and a light/dark scheme, this
derives the full theme colour contract — surfaces, every role with a readable
.content foreground, and status colours — picking foregrounds by APCA
(WCAG 3) contrast so text on any role is legible by construction.
Structs§
- Palette
Spec - Brand input: a primary plus optional overrides. Unset roles are derived.
Enums§
- Scheme
- Light or dark base scheme.
Constants§
- PALETTE_
ORDER - The ordered token-id suffixes every synthesized palette emits. Each entry is
the part after
color.— e.g."base.100","primary.content".
Functions§
- synth_
palette - Derive the full ordered palette as
(id-suffix, rgb)pairs, inPALETTE_ORDER. The id suffix is the part aftercolor..
Type Aliases§
- Rgb
- An sRGB colour triple.