Palettes
Five palettes share one set of colour roles, so every component works in all of them. Set one on the page, or on any element to theme just that part.
With no data-palette, the page uses Village, and switches to Lantern when the system is in dark mode (or data-theme="dark" is set).
Village
Default. Terracotta tiles, warm lime-washed walls, rice gold and bamboo green.
#F3E7C9
#FBF4E2
#5A3A28
#3B2618
#B04A2C
#E9C77E
#4F7330
#E2A93A
#9E3A2C
#5D7486
#BFE3EE
Meadow
Young rice and banana leaves after rain.
#E9F0D2
#F8FBEC
#3B4724
#26301A
#3F6E2A
#D6E59A
#2F6B4F
#E8C547
#A0412E
#4F6E7E
#CFE8D8
Lotus
Lotus pond in early summer: petal pink, leaf green, warm cream.
#F8E4E4
#FFF6F3
#5B2E3C
#3D1F28
#B2456A
#F4C3CF
#4E7A43
#EFB94B
#9A2F2F
#5E6C8A
#CFE6D2
River
Morning river and sky: clear blues with sandy banks.
#E2EEF2
#F7FBFC
#2B4150
#1C2C36
#2D6A92
#EAD9AE
#2F6B55
#E9B54A
#A33D33
#5A6F86
#C6E6D9
Lantern · dark
Dark. An evening lit by an oil lamp: deep indigo, warm amber.
#1B1828
#2C2740
#0C0A14
#F3E7C9
#E9A23B
#4A4266
#79B85A
#F2C25A
#E07A62
#8FA6C9
#3D5470
Make your own
Add a block to tokens.json under palettes and run pnpm tokens, or write the variables by hand. Every role must be set; walls are the face colour about one step darker. pnpm contrast checks every text pair against WCAG AA (4.5:1).
[data-palette="tea"] {
color-scheme: light;
--cz-page: #F3E7C9;
--cz-page-sky: #BFE3EE;
--cz-surface: #FBF4E2;
--cz-surface-top: #FFFAF0;
--cz-surface-bottom: #F5EAD0;
--cz-surface-wall: #C9A979;
--cz-surface-sunken: #E8D7AE;
--cz-text: #3B2618;
--cz-text-muted: #6B4E36;
--cz-text-inverse: #FFF8E7;
--cz-outline: #5A3A28;
--cz-outline-soft: #8A5B3C;
--cz-primary: #B04A2C;
--cz-primary-wall: #8C3920;
--cz-primary-text: #FFF8E7;
--cz-secondary: #E9C77E;
--cz-secondary-wall: #C9A35A;
--cz-secondary-text: #3B2618;
--cz-success: #4F7330;
--cz-success-wall: #3A5622;
--cz-success-text: #FFF8E7;
--cz-success-bright: #8DB84A;
--cz-reward: #E2A93A;
--cz-reward-wall: #B9832A;
--cz-reward-text: #3B2618;
--cz-danger: #9E3A2C;
--cz-danger-wall: #76281E;
--cz-danger-text: #FFF8E7;
--cz-info: #5D7486;
--cz-info-text: #FFF8E7;
--cz-accent: #BFE3EE;
--cz-accent-text: #3B2618;
--cz-tint-success: #EEF5DD;
--cz-tint-info: #E3EBF0;
--cz-tint-danger: #F7E1D8;
--cz-ring: #B04A2C;
--cz-overlay: rgb(59 38 24 / 0.55);
--cz-contact: rgb(59 38 24 / 0.38);
--cz-tooltip: #5A3A28;
--cz-tooltip-text: #F3E7C9;
}