Theme colors

Define a small palette, export CSS custom properties for Dawn-style themes, and sanity-check contrast between a text and background swatch.

Palette
--color-primary
--color-accent
--color-background
--color-text
--color-muted
--color-border
Contrast check (WCAG 2)
Sample storefront text at normal and large sizes.

Contrast ratio: 16.74:1

  • Normal text (AA): Pass (≥ 4.5)
  • Large text (AA): Pass (≥ 3)
CSS output
:root {
  --color-primary: #0f766e;
  --color-accent: #f59e0b;
  --color-background: #fafaf9;
  --color-text: #1c1917;
  --color-muted: #78716c;
  --color-border: #e7e5e4;
}

Paste into base.css or a theme stylesheet, then reference with var(--color-text) (names follow your labels). Dawn uses different token names — treat this as a starting point.