Turmeric for shadcn/ui

Turmeric is a shadcn/ui theme built around a green primary color (#90e67a) with muted light green accents (#d1d9ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#90e67a) on a green-tinted background (#080e07).

Color palette

TokenLightDark
Background
#ffffffwhite
#080e07black
Foreground
#091306black
#fcfdfcwhite
Card
#fcfcfcsnow
#0a1108black
Card foreground
#070f05black
#ffffffwhite
Popover
#fcfcfcsnow
#0a1108black
Popover foreground
#070f05black
#ffffffwhite
Primary
#90e67alightgreen
#90e67alightgreen
Primary foreground
#0e2707black
#0e2707black
Secondary
#e2e5e1gainsboro
#121810black
Secondary foreground
#474f45darkslategray
#a4be9ddarkgray
Muted
#f1f5efwhitesmoke
#0b100ablack
Muted foreground
#5e7359dimgray
#91a68cdarkseagreen
Accent
#d1d9celightgrey
#20311cdarkslategray
Accent foreground
#364234darkslategray
#b5d0aesilver
Destructive
#ba3412firebrick
#eb5b37tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#90e67alightgreen
#90e67alightgreen

Contrast

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

Light mode
Text on background18.96:1AAA
Text on card19.03:1AAA
Primary button10.47:1AAA
Secondary button6.67:1AA
Muted text4.67:1AA
Accent7.30:1AAA
Destructive5.87:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.13:1AAA
Primary button10.47:1AAA
Secondary button8.93:1AAA
Muted text7.37:1AAA
Accent8.34:1AAA
Destructive6.10:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.173 0.03 138.837);
  --muted: oklch(0.965 0.009 139.442);
  --muted-foreground: oklch(0.531 0.048 139.435);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.157 0.026 138.334);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.157 0.026 138.334);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.845 0.165 139.559);
  --primary-foreground: oklch(0.242 0.062 139.727);
  --secondary: oklch(0.918 0.006 139.442);
  --secondary-foreground: oklch(0.417 0.02 139.434);
  --accent: oklch(0.876 0.017 139.439);
  --accent-foreground: oklch(0.363 0.028 139.433);
  --destructive: oklch(0.525 0.176 34.279);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.165 139.559);
  --chart-1: oklch(0.845 0.165 139.559);
  --chart-2: oklch(0.918 0.006 139.442);
  --chart-3: oklch(0.876 0.017 139.439);
  --chart-4: oklch(0.941 0.005 139.443);
  --chart-5: oklch(0.849 0.171 139.578);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.018 138.701);
  --foreground: oklch(0.993 0.001 139.444);
  --muted: oklch(0.164 0.014 139.443);
  --muted-foreground: oklch(0.702 0.045 139.432);
  --popover: oklch(0.168 0.021 139.24);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.168 0.021 139.24);
  --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.845 0.165 139.559);
  --primary-foreground: oklch(0.242 0.062 139.727);
  --secondary: oklch(0.201 0.019 139.435);
  --secondary-foreground: oklch(0.772 0.054 139.432);
  --accent: oklch(0.29 0.043 139.469);
  --accent-foreground: oklch(0.829 0.056 139.432);
  --destructive: oklch(0.655 0.185 35.114);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.845 0.165 139.559);
  --chart-1: oklch(0.845 0.165 139.559);
  --chart-2: oklch(0.201 0.019 139.435);
  --chart-3: oklch(0.29 0.043 139.469);
  --chart-4: oklch(0.238 0.025 139.438);
  --chart-5: oklch(0.849 0.171 139.578);
}