Preparation for shadcn/ui

Preparation is a shadcn/ui theme built around a deep green primary color (#172108) with deep green accents (#0a2108). The light mode uses a neutral background (#fdfefb). Dark mode keeps the deep green primary (#172108) on a green-tinted background (#080c04).

Color palette

TokenLightDark
Background
#fdfefbwhite
#080c04black
Foreground
#030401black
#fafbf9snow
Card
#fafdf7mintcream
#0b1005black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fafdf7mintcream
#0b1005black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#172108black
#172108black
Primary foreground
#87c62fyellowgreen
#87c62fyellowgreen
Secondary
#211f08black
#211f08black
Secondary foreground
#c6ba2fgoldenrod
#c6ba2fgoldenrod
Muted
#f4f3eblinen
#14130bblack
Muted foreground
#5b5b57dimgray
#a8a7a4darkgray
Accent
#0a2108black
#0a2108black
Accent foreground
#3bc62flimegreen
#3bc62flimegreen
Destructive
#d12600firebrick
#eb2b00orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#172108black
#172108black

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card20.46:1AAA
Primary button8.07:1AAA
Secondary button8.28:1AAA
Muted text6.13:1AA
Accent7.53:1AAA
Destructive5.25:1AA
Dark mode
Text on background19.03:1AAA
Text on card18.96:1AAA
Primary button8.07:1AAA
Secondary button8.28:1AAA
Muted text7.75:1AAA
Accent7.53:1AAA
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 125.103);
  --foreground: oklch(0.101 0.015 124.29);
  --muted: oklch(0.963 0.01 102.388);
  --muted-foreground: oklch(0.469 0.005 102.392);
  --popover: oklch(0.99 0.008 125.162);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.008 125.162);
  --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.231 0.046 128.395);
  --primary-foreground: oklch(0.757 0.187 130.185);
  --secondary: oklch(0.235 0.038 104.147);
  --secondary-foreground: oklch(0.775 0.15 103.956);
  --accent: oklch(0.222 0.055 141.904);
  --accent-foreground: oklch(0.726 0.221 141.93);
  --destructive: oklch(0.555 0.208 32.379);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.231 0.046 128.395);
  --chart-1: oklch(0.231 0.046 128.395);
  --chart-2: oklch(0.235 0.038 104.147);
  --chart-3: oklch(0.222 0.055 141.904);
  --chart-4: oklch(0.283 0.048 104.122);
  --chart-5: oklch(0.233 0.048 128.515);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.021 124.511);
  --foreground: oklch(0.986 0.002 125.071);
  --muted: oklch(0.184 0.015 103.416);
  --muted-foreground: oklch(0.728 0.005 102.317);
  --popover: oklch(0.162 0.024 125.878);
  --popover-foreground: oklch(0.993 0.001 125.058);
  --card: oklch(0.162 0.024 125.878);
  --card-foreground: oklch(0.993 0.001 125.058);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.231 0.046 128.395);
  --primary-foreground: oklch(0.757 0.187 130.185);
  --secondary: oklch(0.235 0.038 104.147);
  --secondary-foreground: oklch(0.775 0.15 103.956);
  --accent: oklch(0.222 0.055 141.904);
  --accent-foreground: oklch(0.726 0.221 141.93);
  --destructive: oklch(0.605 0.228 32.21);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.231 0.046 128.395);
  --chart-1: oklch(0.231 0.046 128.395);
  --chart-2: oklch(0.235 0.038 104.147);
  --chart-3: oklch(0.222 0.055 141.904);
  --chart-4: oklch(0.283 0.048 104.122);
  --chart-5: oklch(0.233 0.048 128.515);
}