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.

<html data-palette="meadow">

<!-- or only a section -->
<section data-palette="lantern">…</section>

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.

RewardRipeRainSunny
page
#F3E7C9
surface
#FBF4E2
outline
#5A3A28
text
#3B2618
primary
#B04A2C
secondary
#E9C77E
success
#4F7330
reward
#E2A93A
danger
#9E3A2C
info
#5D7486
accent
#BFE3EE

Meadow

Young rice and banana leaves after rain.

RewardRipeRainSunny
page
#E9F0D2
surface
#F8FBEC
outline
#3B4724
text
#26301A
primary
#3F6E2A
secondary
#D6E59A
success
#2F6B4F
reward
#E8C547
danger
#A0412E
info
#4F6E7E
accent
#CFE8D8

Lotus

Lotus pond in early summer: petal pink, leaf green, warm cream.

RewardRipeRainSunny
page
#F8E4E4
surface
#FFF6F3
outline
#5B2E3C
text
#3D1F28
primary
#B2456A
secondary
#F4C3CF
success
#4E7A43
reward
#EFB94B
danger
#9A2F2F
info
#5E6C8A
accent
#CFE6D2

River

Morning river and sky: clear blues with sandy banks.

RewardRipeRainSunny
page
#E2EEF2
surface
#F7FBFC
outline
#2B4150
text
#1C2C36
primary
#2D6A92
secondary
#EAD9AE
success
#2F6B55
reward
#E9B54A
danger
#A33D33
info
#5A6F86
accent
#C6E6D9

Lantern · dark

Dark. An evening lit by an oil lamp: deep indigo, warm amber.

RewardRipeRainSunny
page
#1B1828
surface
#2C2740
outline
#0C0A14
text
#F3E7C9
primary
#E9A23B
secondary
#4A4266
success
#79B85A
reward
#F2C25A
danger
#E07A62
info
#8FA6C9
accent
#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).

my-palette.css
[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;
}