Royal Shrub Green for shadcn/ui

Royal Shrub Green is a shadcn/ui theme built around a vivid deep teal primary color (#063735) with vivid deep red accents (#370608). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid deep teal primary (#063735) on a teal-tinted background (#040b0b).

Color palette

TokenLightDark
Background
#fbfefewhite
#040b0bblack
Foreground
#030c0cblack
#ffffffwhite
Card
#fbfefewhite
#040b0bblack
Card foreground
#030c0cblack
#ffffffwhite
Popover
#fbfefewhite
#040b0bblack
Popover foreground
#030c0cblack
#ffffffwhite
Primary
#063735darkslategray
#063735darkslategray
Primary foreground
#24e5dfturquoise
#24e5dfturquoise
Secondary
#370608black
#370608black
Secondary foreground
#f07f83lightcoral
#f07f83lightcoral
Muted
#f7edeelinen
#120808black
Muted foreground
#504444darkslategray
#bbafb0darkgray
Accent
#370608black
#370608black
Accent foreground
#f07f83lightcoral
#f07f83lightcoral
Destructive
#a52112firebrick
#e94735tomato
Destructive foreground
#fdeeedseashell
#ffffffwhite
Border
#eef1f1whitesmoke
#171c1cblack
Input
#eef1f1whitesmoke
#171c1cblack
Ring
#063735darkslategray
#063735darkslategray

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button8.33:1AAA
Secondary button6.76:1AA
Muted text8.15:1AAA
Accent6.76:1AA
Destructive6.57:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button8.33:1AAA
Secondary button6.76:1AA
Muted text9.28:1AAA
Accent6.76:1AA
Destructive3.88:1AA Large

CSS variables

Paste this into your globals.css to use Royal Shrub Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 194.744);
  --foreground: oklch(0.144 0.017 193.223);
  --muted: oklch(0.955 0.01 14.996);
  --muted-foreground: oklch(0.399 0.016 15.568);
  --popover: oklch(0.994 0.002 194.744);
  --popover-foreground: oklch(0.144 0.017 193.223);
  --card: oklch(0.994 0.002 194.744);
  --card-foreground: oklch(0.144 0.017 193.223);
  --border: oklch(0.956 0.003 194.726);
  --input: oklch(0.956 0.003 194.726);
  --primary: oklch(0.305 0.049 191.498);
  --primary-foreground: oklch(0.836 0.139 191.113);
  --secondary: oklch(0.222 0.076 24.09);
  --secondary-foreground: oklch(0.724 0.139 19.018);
  --accent: oklch(0.222 0.076 24.09);
  --accent-foreground: oklch(0.724 0.139 19.018);
  --destructive: oklch(0.471 0.17 30.489);
  --destructive-foreground: oklch(0.961 0.016 25.133);
  --ring: oklch(0.305 0.049 191.498);
  --chart-1: oklch(0.305 0.049 191.498);
  --chart-2: oklch(0.222 0.076 24.09);
  --chart-3: oklch(0.222 0.076 24.09);
  --chart-4: oklch(0.254 0.09 24.905);
  --chart-5: oklch(0.308 0.05 191.43);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.014 193.5);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.149 0.018 16.982);
  --muted-foreground: oklch(0.764 0.014 15.125);
  --popover: oklch(0.142 0.014 193.5);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.014 193.5);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.221 0.008 194.154);
  --input: oklch(0.221 0.008 194.154);
  --primary: oklch(0.305 0.049 191.498);
  --primary-foreground: oklch(0.836 0.139 191.113);
  --secondary: oklch(0.222 0.076 24.09);
  --secondary-foreground: oklch(0.724 0.139 19.018);
  --accent: oklch(0.222 0.076 24.09);
  --accent-foreground: oklch(0.724 0.139 19.018);
  --destructive: oklch(0.627 0.201 29.996);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.305 0.049 191.498);
  --chart-1: oklch(0.305 0.049 191.498);
  --chart-2: oklch(0.222 0.076 24.09);
  --chart-3: oklch(0.222 0.076 24.09);
  --chart-4: oklch(0.254 0.09 24.905);
  --chart-5: oklch(0.308 0.05 191.43);
}