Starchy for shadcn/ui

Starchy is a shadcn/ui theme built around a green primary color (#88cd8b) with red accents (#cd8b88). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#88cd8b) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#fbfefbwhite
#010401black
Foreground
#051505black
#f9fbf9mintcream
Card
#fbfefbwhite
#010401black
Card foreground
#051505black
#f9fbf9mintcream
Popover
#fbfefbwhite
#010401black
Popover foreground
#051505black
#f9fbf9mintcream
Primary
#88cd8bdarkseagreen
#88cd8bdarkseagreen
Primary foreground
#0b190bblack
#0b190bblack
Secondary
#8b88cdmediumpurple
#8b88cdmediumpurple
Secondary foreground
#0b0b19black
#0b0b19black
Muted
#cdcce5lightgrey
#1a1a33midnightblue
Muted foreground
#5b5a6cdimgray
#9393a5darkgray
Accent
#cd8b88rosybrown
#cd8b88rosybrown
Accent foreground
#190b0bblack
#190b0bblack
Destructive
#a82b05firebrick
#f8430dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#88cd8bdarkseagreen
#88cd8bdarkseagreen

Contrast

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

Light mode
Text on background18.51:1AAA
Text on card18.51:1AAA
Primary button9.66:1AAA
Secondary button6.05:1AA
Muted text4.28:1AA Large
Accent6.97:1AA
Destructive6.95:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button9.66:1AAA
Secondary button6.05:1AA
Muted text5.62:1AA
Accent6.97:1AA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 146.499);
  --foreground: oklch(0.174 0.039 144.516);
  --muted: oklch(0.854 0.035 287.168);
  --muted-foreground: oklch(0.477 0.029 286.788);
  --popover: oklch(0.994 0.005 146.499);
  --popover-foreground: oklch(0.174 0.039 144.516);
  --card: oklch(0.994 0.005 146.499);
  --card-foreground: oklch(0.174 0.039 144.516);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.786 0.117 145.134);
  --primary-foreground: oklch(0.196 0.035 144.836);
  --secondary: oklch(0.657 0.102 284.759);
  --secondary-foreground: oklch(0.157 0.031 283.78);
  --accent: oklch(0.702 0.082 21.546);
  --accent-foreground: oklch(0.171 0.025 22.136);
  --destructive: oklch(0.485 0.167 34.969);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.786 0.117 145.134);
  --chart-1: oklch(0.786 0.117 145.134);
  --chart-2: oklch(0.657 0.102 284.759);
  --chart-3: oklch(0.702 0.082 21.546);
  --chart-4: oklch(0.689 0.092 285.255);
  --chart-5: oklch(0.791 0.124 145.038);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.017 145.188);
  --foreground: oklch(0.985 0.002 146.52);
  --muted: oklch(0.231 0.048 283.491);
  --muted-foreground: oklch(0.668 0.026 287.197);
  --popover: oklch(0.096 0.017 145.188);
  --popover-foreground: oklch(0.985 0.002 146.52);
  --card: oklch(0.096 0.017 145.188);
  --card-foreground: oklch(0.985 0.002 146.52);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.786 0.117 145.134);
  --primary-foreground: oklch(0.196 0.035 144.836);
  --secondary: oklch(0.657 0.102 284.759);
  --secondary-foreground: oklch(0.157 0.031 283.78);
  --accent: oklch(0.702 0.082 21.546);
  --accent-foreground: oklch(0.171 0.025 22.136);
  --destructive: oklch(0.646 0.223 34.801);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.786 0.117 145.134);
  --chart-1: oklch(0.786 0.117 145.134);
  --chart-2: oklch(0.657 0.102 284.759);
  --chart-3: oklch(0.702 0.082 21.546);
  --chart-4: oklch(0.689 0.092 285.255);
  --chart-5: oklch(0.791 0.124 145.038);
}