Wok for shadcn/ui

Wok is a shadcn/ui theme built around a light orange primary color (#fcf7ee) with muted light orange accents (#cbc6bd). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the light orange primary (#fcf7ee) on an orange-tinted background (#0a0805).

Color palette

TokenLightDark
Background
#fdfbf7snow
#0a0805black
Foreground
#000000black
#faf8f5whitesmoke
Card
#fdfbf7snow
#0a0805black
Card foreground
#000000black
#faf8f5whitesmoke
Popover
#fdfbf7snow
#0a0805black
Popover foreground
#000000black
#faf8f5whitesmoke
Primary
#fcf7eeseashell
#fcf7eeseashell
Primary foreground
#45300ddarkolivegreen
#45300ddarkolivegreen
Secondary
#d7d6d5lightgrey
#312d26darkslategray
Secondary foreground
#3e3e3cdarkslategray
#cbc6bdsilver
Muted
#efece6linen
#191610black
Muted foreground
#4a4640darkslategray
#bfbbb5silver
Accent
#cbc6bdsilver
#514634darkolivegreen
Accent foreground
#312d26darkslategray
#e3ddd3gainsboro
Destructive
#c63201firebrick
#f93f01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcf7eeseashell
#fcf7eeseashell

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button11.67:1AAA
Secondary button7.40:1AAA
Muted text7.93:1AAA
Accent8.07:1AAA
Destructive5.44:1AA
Dark mode
Text on background18.83:1AAA
Text on card18.83:1AAA
Primary button11.67:1AAA
Secondary button8.08:1AAA
Muted text9.47:1AAA
Accent6.82:1AA
Destructive3.66:1AA Large

CSS variables

Paste this into your globals.css to use Wok in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 81.513);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.943 0.008 81.511);
  --muted-foreground: oklch(0.396 0.011 81.477);
  --popover: oklch(0.988 0.005 81.513);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.005 81.513);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.977 0.013 81.506);
  --primary-foreground: oklch(0.327 0.058 77.477);
  --secondary: oklch(0.878 0.002 81.514);
  --secondary-foreground: oklch(0.362 0.003 81.511);
  --accent: oklch(0.829 0.014 81.502);
  --accent-foreground: oklch(0.298 0.013 81.419);
  --destructive: oklch(0.544 0.19 35.04);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.013 81.506);
  --chart-1: oklch(0.977 0.013 81.506);
  --chart-2: oklch(0.878 0.002 81.514);
  --chart-3: oklch(0.829 0.014 81.502);
  --chart-4: oklch(0.901 0.001 81.514);
  --chart-5: oklch(0.977 0.014 81.506);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.009 85.563);
  --foreground: oklch(0.979 0.004 81.513);
  --muted: oklch(0.2 0.012 81.329);
  --muted-foreground: oklch(0.795 0.009 81.508);
  --popover: oklch(0.137 0.009 85.563);
  --popover-foreground: oklch(0.979 0.004 81.513);
  --card: oklch(0.137 0.009 85.563);
  --card-foreground: oklch(0.979 0.004 81.513);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.977 0.013 81.506);
  --primary-foreground: oklch(0.327 0.058 77.477);
  --secondary: oklch(0.298 0.013 81.419);
  --secondary-foreground: oklch(0.829 0.014 81.502);
  --accent: oklch(0.4 0.033 81.098);
  --accent-foreground: oklch(0.901 0.015 81.502);
  --destructive: oklch(0.644 0.228 34.615);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.013 81.506);
  --chart-1: oklch(0.977 0.013 81.506);
  --chart-2: oklch(0.298 0.013 81.419);
  --chart-3: oklch(0.4 0.033 81.098);
  --chart-4: oklch(0.33 0.015 81.412);
  --chart-5: oklch(0.977 0.014 81.506);
}