Growth for shadcn/ui

Growth is a shadcn/ui theme built around a teal primary color (#1e8a54) with pink accents (#8a1e54). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the teal primary (#1e8a54) on a teal-tinted background (#060f0a).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#060f0ablack
Foreground
#04150dblack
#fcfdfcwhite
Card
#f3fcf7mintcream
#07120dblack
Card foreground
#03110ablack
#ffffffwhite
Popover
#f7fdfamintcream
#060f0ablack
Popover foreground
#04150dblack
#fcfdfcwhite
Primary
#1e8a54seagreen
#1e8a54seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8a1e54brown
#8a1e54brown
Secondary foreground
#f9e2edmistyrose
#f9e2edmistyrose
Muted
#e5dce0gainsboro
#231a1fblack
Muted foreground
#65535cdimgray
#ac9aa3darkgray
Accent
#8a1e54brown
#8a1e54brown
Accent foreground
#f9e2edmistyrose
#f9e2edmistyrose
Destructive
#85230asaddlebrown
#f16441tomato
Destructive foreground
#fbd1c6peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1e8a54seagreen
#1e8a54seagreen

Contrast

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

Light mode
Text on background18.20:1AAA
Text on card18.41:1AAA
Primary button4.35:1AA Large
Secondary button7.14:1AAA
Muted text5.31:1AA
Accent7.14:1AAA
Destructive6.73:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.03:1AAA
Primary button4.35:1AA Large
Secondary button7.14:1AAA
Muted text6.37:1AA
Accent7.14:1AAA
Destructive6.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 164.955);
  --foreground: oklch(0.178 0.03 160.997);
  --muted: oklch(0.903 0.011 345.458);
  --muted-foreground: oklch(0.462 0.028 346.658);
  --popover: oklch(0.988 0.007 164.955);
  --popover-foreground: oklch(0.178 0.03 160.997);
  --card: oklch(0.982 0.011 164.857);
  --card-foreground: oklch(0.161 0.026 162.741);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.561 0.126 155.822);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.432 0.15 355.131);
  --secondary-foreground: oklch(0.934 0.029 345.938);
  --accent: oklch(0.432 0.15 355.131);
  --accent-foreground: oklch(0.934 0.029 345.938);
  --destructive: oklch(0.411 0.137 34.295);
  --destructive-foreground: oklch(0.893 0.05 34.349);
  --ring: oklch(0.561 0.126 155.822);
  --chart-1: oklch(0.561 0.126 155.822);
  --chart-2: oklch(0.432 0.15 355.131);
  --chart-3: oklch(0.432 0.15 355.131);
  --chart-4: oklch(0.459 0.161 355.264);
  --chart-5: oklch(0.568 0.13 155.428);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.017 163.521);
  --foreground: oklch(0.993 0.002 165.102);
  --muted: oklch(0.231 0.016 346.819);
  --muted-foreground: oklch(0.705 0.025 346.048);
  --popover: oklch(0.155 0.017 163.521);
  --popover-foreground: oklch(0.993 0.002 165.102);
  --card: oklch(0.17 0.02 162.034);
  --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.561 0.126 155.822);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.432 0.15 355.131);
  --secondary-foreground: oklch(0.934 0.029 345.938);
  --accent: oklch(0.432 0.15 355.131);
  --accent-foreground: oklch(0.934 0.029 345.938);
  --destructive: oklch(0.676 0.181 35.188);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.561 0.126 155.822);
  --chart-1: oklch(0.561 0.126 155.822);
  --chart-2: oklch(0.432 0.15 355.131);
  --chart-3: oklch(0.432 0.15 355.131);
  --chart-4: oklch(0.459 0.161 355.264);
  --chart-5: oklch(0.568 0.13 155.428);
}