Theming
Seven colours, three fonts, a radius and a base size. Change them and every block follows.
Steps
Describe your style
A Style is plain data. Colours are authored for one mode; add altColors for the other or let them be derived.
Pass it to Theme
Theme writes the palette, font stacks, radius and size as CSS variables. Shades and tones are derived in CSS.
Use the tokens in your own code
Every Tailwind name is kh- prefixed, so it never collides with yours.
What changes with a style
Blocks read tokens only, never raw colours, so a style is the whole visual change.
Contrast is kept
Keep ink on canvas and accent text on accent at 4.5:1 or more. Derived palettes are walked until they meet that.
Tones follow
Each section can sit on a default, muted, inverse or accent surface. Tones read the palette, so they follow your style too.
Wireframe
theme="wireframe" swaps everything for greys, square corners and no shadows: the same layout, for planning.