Shoat for shadcn/ui

Shoat is a shadcn/ui theme built around a vivid light green primary color (#c8fee1) with muted light green accents (#c6d7ce). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the vivid light green primary (#c8fee1) on a neutral background (#020805).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#020805black
Foreground
#03170cblack
#f9fbfamintcream
Card
#f3fbf7mintcream
#030c07black
Card foreground
#02120ablack
#fcfdfcwhite
Popover
#f3fbf7mintcream
#030c07black
Popover foreground
#02120ablack
#fcfdfcwhite
Primary
#c8fee1paleturquoise
#c8fee1paleturquoise
Primary foreground
#012d15black
#012d15black
Secondary
#e3e8e5gainsboro
#26362ddarkslategray
Secondary foreground
#45544cdarkslategray
#bdd1c6silver
Muted
#d8e8e0gainsboro
#17271eblack
Muted foreground
#495b51darkslategray
#a4b6addarkgray
Accent
#c6d7celightgrey
#355544darkslategray
Accent foreground
#2c3f35darkslategray
#d6e5ddgainsboro
Destructive
#7e1707maroon
#f3381borangered
Destructive foreground
#fbc4bblightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c8fee1paleturquoise
#c8fee1paleturquoise

Contrast

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

Light mode
Text on background17.97:1AAA
Text on card18.30:1AAA
Primary button13.50:1AAA
Secondary button6.45:1AA
Muted text5.72:1AA
Accent7.48:1AAA
Destructive6.82:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.42:1AAA
Primary button13.50:1AAA
Secondary button7.93:1AAA
Muted text7.37:1AAA
Accent6.38:1AA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 163.269);
  --foreground: oklch(0.182 0.036 158.931);
  --muted: oklch(0.918 0.02 162.873);
  --muted-foreground: oklch(0.451 0.027 161.834);
  --popover: oklch(0.982 0.01 163.179);
  --popover-foreground: oklch(0.164 0.031 160.772);
  --card: oklch(0.982 0.01 163.179);
  --card-foreground: oklch(0.164 0.031 160.772);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.952 0.068 161.506);
  --primary-foreground: oklch(0.262 0.065 154.448);
  --secondary: oklch(0.926 0.007 163.265);
  --secondary-foreground: oklch(0.431 0.023 161.995);
  --accent: oklch(0.864 0.021 162.805);
  --accent-foreground: oklch(0.347 0.029 161.131);
  --destructive: oklch(0.386 0.14 31.609);
  --destructive-foreground: oklch(0.867 0.065 28.507);
  --ring: oklch(0.952 0.068 161.506);
  --chart-1: oklch(0.952 0.068 161.506);
  --chart-2: oklch(0.926 0.007 163.265);
  --chart-3: oklch(0.864 0.021 162.805);
  --chart-4: oklch(0.949 0.005 163.323);
  --chart-5: oklch(0.954 0.07 161.446);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.017 163.516);
  --foreground: oklch(0.986 0.002 163.382);
  --muted: oklch(0.254 0.027 160.382);
  --muted-foreground: oklch(0.761 0.024 162.624);
  --popover: oklch(0.142 0.02 163.182);
  --popover-foreground: oklch(0.993 0.001 163.413);
  --card: oklch(0.142 0.02 163.182);
  --card-foreground: oklch(0.993 0.001 163.413);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.952 0.068 161.506);
  --primary-foreground: oklch(0.262 0.065 154.448);
  --secondary: oklch(0.316 0.027 161.077);
  --secondary-foreground: oklch(0.842 0.026 162.632);
  --accent: oklch(0.418 0.047 160.162);
  --accent-foreground: oklch(0.91 0.02 162.891);
  --destructive: oklch(0.63 0.226 31.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.952 0.068 161.506);
  --chart-1: oklch(0.952 0.068 161.506);
  --chart-2: oklch(0.316 0.027 161.077);
  --chart-3: oklch(0.418 0.047 160.162);
  --chart-4: oklch(0.348 0.031 160.995);
  --chart-5: oklch(0.954 0.07 161.446);
}