Teriyaki for shadcn/ui

Teriyaki is a shadcn/ui theme built around a green primary color (#25742f) with muted light green accents (#cdd5ce). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#25742f) on a green-tinted background (#060f07).

Color palette

TokenLightDark
Background
#fbfefbwhite
#060f07black
Foreground
#051507black
#ffffffwhite
Card
#fbfefbwhite
#060f07black
Card foreground
#051507black
#ffffffwhite
Popover
#fbfefbwhite
#060f07black
Popover foreground
#051507black
#ffffffwhite
Primary
#25742fforestgreen
#25742fforestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cdd5celightgrey
#1c1c1cblack
Secondary foreground
#343d35darkslategray
#b4b6b4silver
Muted
#e0e5e1gainsboro
#1a1f1ablack
Muted foreground
#3d4c3fdarkslategray
#b3c2b4silver
Accent
#cdd5celightgrey
#1c1c1cblack
Accent foreground
#343d35darkslategray
#b4b6b4silver
Destructive
#641202maroon
#fb5432tomato
Destructive foreground
#fdab9blightsalmon
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#25742fforestgreen
#25742fforestgreen

Contrast

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

Light mode
Text on background18.49:1AAA
Text on card18.49:1AAA
Primary button5.83:1AA
Secondary button7.50:1AAA
Muted text7.17:1AAA
Accent7.50:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button5.83:1AA
Secondary button8.33:1AAA
Muted text9.03:1AAA
Accent8.33:1AAA
Destructive6.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 149.082);
  --foreground: oklch(0.174 0.036 146.959);
  --muted: oklch(0.918 0.008 149.03);
  --muted-foreground: oklch(0.401 0.029 148.23);
  --popover: oklch(0.994 0.004 149.082);
  --popover-foreground: oklch(0.174 0.036 146.959);
  --card: oklch(0.994 0.004 149.082);
  --card-foreground: oklch(0.174 0.036 146.959);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.493 0.128 145.232);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.865 0.012 148.971);
  --secondary-foreground: oklch(0.347 0.018 148.5);
  --accent: oklch(0.865 0.012 148.971);
  --accent-foreground: oklch(0.347 0.018 148.5);
  --destructive: oklch(0.33 0.117 33.394);
  --destructive-foreground: oklch(0.817 0.1 31.767);
  --ring: oklch(0.493 0.128 145.232);
  --chart-1: oklch(0.493 0.128 145.232);
  --chart-2: oklch(0.865 0.012 148.971);
  --chart-3: oklch(0.865 0.012 148.971);
  --chart-4: oklch(0.888 0.01 149.002);
  --chart-5: oklch(0.499 0.134 145.051);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.023 147.878);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.231 0.011 148.54);
  --muted-foreground: oklch(0.798 0.025 148.759);
  --popover: oklch(0.154 0.023 147.878);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.023 147.878);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.493 0.128 145.232);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.227 0.001 149.067);
  --secondary-foreground: oklch(0.774 0.002 149.095);
  --accent: oklch(0.227 0.001 149.067);
  --accent-foreground: oklch(0.774 0.002 149.095);
  --destructive: oklch(0.67 0.209 33.193);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.493 0.128 145.232);
  --chart-1: oklch(0.493 0.128 145.232);
  --chart-2: oklch(0.227 0.001 149.067);
  --chart-3: oklch(0.227 0.001 149.067);
  --chart-4: oklch(0.26 0.002 149.062);
  --chart-5: oklch(0.499 0.134 145.051);
}