Croup for shadcn/ui

Croup is a shadcn/ui theme built around a vivid green primary color (#07b64d) with muted light green accents (#d5e2da). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid green primary (#07b64d) on a green-tinted background (#050b07).

Color palette

TokenLightDark
Background
#fbfefcwhite
#050b07black
Foreground
#041109black
#ffffffwhite
Card
#fbfefcwhite
#050b07black
Card foreground
#041109black
#ffffffwhite
Popover
#fbfefcwhite
#050b07black
Popover foreground
#041109black
#ffffffwhite
Primary
#07b64dlimegreen
#07b64dlimegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d5e2dagainsboro
#242d28darkslategray
Secondary foreground
#364e40darkslategray
#bbc9c0silver
Muted
#daece1gainsboro
#13251ablack
Muted foreground
#58655ddimgray
#9aa79fdarkgray
Accent
#d5e2dagainsboro
#242d28darkslategray
Accent foreground
#364e40darkslategray
#bbc9c0silver
Destructive
#ac2811firebrick
#e83617orangered
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#07b64dlimegreen
#07b64dlimegreen

Contrast

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

Light mode
Text on background18.96:1AAA
Text on card18.96:1AAA
Primary button2.68:1Fail
Secondary button6.75:1AA
Muted text4.97:1AA
Accent6.75:1AA
Destructive6.30:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button2.68:1Fail
Secondary button8.22:1AAA
Muted text6.40:1AA
Accent8.22:1AAA
Destructive4.21:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 160.159);
  --foreground: oklch(0.16 0.027 158.218);
  --muted: oklch(0.927 0.025 159.612);
  --muted-foreground: oklch(0.493 0.02 159.247);
  --popover: oklch(0.994 0.003 160.159);
  --popover-foreground: oklch(0.16 0.027 158.218);
  --card: oklch(0.994 0.003 160.159);
  --card-foreground: oklch(0.16 0.027 158.218);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.678 0.192 148.532);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.9 0.017 159.788);
  --secondary-foreground: oklch(0.4 0.038 157.822);
  --accent: oklch(0.9 0.017 159.788);
  --accent-foreground: oklch(0.4 0.038 157.822);
  --destructive: oklch(0.489 0.171 32.214);
  --destructive-foreground: oklch(0.972 0.012 29.512);
  --ring: oklch(0.678 0.192 148.532);
  --chart-1: oklch(0.678 0.192 148.532);
  --chart-2: oklch(0.9 0.017 159.788);
  --chart-3: oklch(0.9 0.017 159.788);
  --chart-4: oklch(0.922 0.013 159.895);
  --chart-5: oklch(0.686 0.196 148.275);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.015 160.099);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.246 0.033 156.666);
  --muted-foreground: oklch(0.716 0.019 159.622);
  --popover: oklch(0.139 0.015 160.099);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.015 160.099);
  --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.678 0.192 148.532);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.288 0.016 158.907);
  --secondary-foreground: oklch(0.822 0.018 159.71);
  --accent: oklch(0.288 0.016 158.907);
  --accent-foreground: oklch(0.822 0.018 159.71);
  --destructive: oklch(0.609 0.217 32.116);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.678 0.192 148.532);
  --chart-1: oklch(0.678 0.192 148.532);
  --chart-2: oklch(0.288 0.016 158.907);
  --chart-3: oklch(0.288 0.016 158.907);
  --chart-4: oklch(0.32 0.018 158.851);
  --chart-5: oklch(0.686 0.196 148.275);
}