Growing for shadcn/ui

Growing is a shadcn/ui theme built around a violet primary color (#8c61b3) with green accents (#87b361). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#8c61b3) on a violet-tinted background (#0b0410).

Color palette

TokenLightDark
Background
#fdfbfewhite
#0b0410black
Foreground
#000000black
#faf9fbghostwhite
Card
#faf7fdghostwhite
#0d0514black
Card foreground
#000000black
#fcfcfdwhite
Popover
#fdfbfewhite
#0b0410black
Popover foreground
#000000black
#faf9fbghostwhite
Primary
#8c61b3mediumpurple
#8c61b3mediumpurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#87b361darkseagreen
#87b361darkseagreen
Secondary foreground
#000000black
#000000black
Muted
#e0e3degainsboro
#1e211cblack
Muted foreground
#666d5fdimgray
#99a092darkgray
Accent
#87b361darkseagreen
#87b361darkseagreen
Accent foreground
#000000black
#000000black
Destructive
#c10606firebrick
#f92f2fcrimson
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8c61b3mediumpurple
#8c61b3mediumpurple

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card19.81:1AAA
Primary button4.69:1AA
Secondary button8.62:1AAA
Muted text4.14:1AA Large
Accent8.62:1AAA
Destructive6.16:1AA
Dark mode
Text on background19.25:1AAA
Text on card19.50:1AAA
Primary button4.69:1AA
Secondary button8.62:1AAA
Muted text6.02:1AA
Accent8.62:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 309.747);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.912 0.008 129.873);
  --muted-foreground: oklch(0.524 0.024 130.247);
  --popover: oklch(0.99 0.004 309.747);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.008 309.708);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.571 0.13 307.367);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.715 0.121 131.796);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.715 0.121 131.796);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.511 0.207 28.959);
  --destructive-foreground: oklch(0.989 0.005 17.243);
  --ring: oklch(0.571 0.13 307.367);
  --chart-1: oklch(0.571 0.13 307.367);
  --chart-2: oklch(0.715 0.121 131.796);
  --chart-3: oklch(0.715 0.121 131.796);
  --chart-4: oklch(0.734 0.113 131.571);
  --chart-5: oklch(0.568 0.14 307.11);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.032 309.664);
  --foreground: oklch(0.983 0.004 309.747);
  --muted: oklch(0.244 0.011 130.249);
  --muted-foreground: oklch(0.696 0.022 130.108);
  --popover: oklch(0.129 0.032 309.664);
  --popover-foreground: oklch(0.983 0.004 309.747);
  --card: oklch(0.14 0.036 308.306);
  --card-foreground: oklch(0.991 0.002 309.766);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.571 0.13 307.367);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.715 0.121 131.796);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.715 0.121 131.796);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.635 0.234 27.129);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.571 0.13 307.367);
  --chart-1: oklch(0.571 0.13 307.367);
  --chart-2: oklch(0.715 0.121 131.796);
  --chart-3: oklch(0.715 0.121 131.796);
  --chart-4: oklch(0.734 0.113 131.571);
  --chart-5: oklch(0.568 0.14 307.11);
}