Bloom for shadcn/ui

Bloom is a shadcn/ui theme built around a vivid green primary color (#87970c) with vivid green accents (#41970c). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the vivid green primary (#87970c) on a green-tinted background (#0b0c04).

Color palette

TokenLightDark
Background
#fcfdf7snow
#0b0c04black
Foreground
#131504black
#fdfdfcwhite
Card
#fcfdf7snow
#0b0c04black
Card foreground
#131504black
#fdfdfcwhite
Popover
#fcfdf7snow
#0b0c04black
Popover foreground
#131504black
#fdfdfcwhite
Primary
#87970colive
#87970colive
Primary foreground
#000000black
#000000black
Secondary
#97620csaddlebrown
#97620csaddlebrown
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4f3f0whitesmoke
#0f0d0bblack
Muted foreground
#504f4edarkslategray
#b1b0afdarkgray
Accent
#41970cforestgreen
#41970cforestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d34509chocolate
#f5510aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#87970colive
#87970colive

Contrast

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

Light mode
Text on background18.00:1AAA
Text on card18.00:1AAA
Primary button6.45:1AA
Secondary button5.17:1AA
Muted text7.35:1AAA
Accent3.71:1AA Large
Destructive4.54:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.35:1AAA
Primary button6.45:1AA
Secondary button5.17:1AA
Muted text8.95:1AAA
Accent3.71:1AA Large
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.007 111.91);
  --foreground: oklch(0.189 0.032 114.607);
  --muted: oklch(0.964 0.003 79.928);
  --muted-foreground: oklch(0.429 0.002 79.927);
  --popover: oklch(0.991 0.007 111.91);
  --popover-foreground: oklch(0.189 0.032 114.607);
  --card: oklch(0.991 0.007 111.91);
  --card-foreground: oklch(0.189 0.032 114.607);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.641 0.145 117.18);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.54 0.112 71.099);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.599 0.18 137.632);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.586 0.187 38.277);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.641 0.145 117.18);
  --chart-1: oklch(0.641 0.145 117.18);
  --chart-2: oklch(0.54 0.112 71.099);
  --chart-3: oklch(0.599 0.18 137.632);
  --chart-4: oklch(0.576 0.12 70.874);
  --chart-5: oklch(0.648 0.148 117.301);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.019 113.148);
  --foreground: oklch(0.994 0.002 111.813);
  --muted: oklch(0.161 0.005 79.839);
  --muted-foreground: oklch(0.758 0.002 79.93);
  --popover: oklch(0.148 0.019 113.148);
  --popover-foreground: oklch(0.994 0.002 111.813);
  --card: oklch(0.148 0.019 113.148);
  --card-foreground: oklch(0.994 0.002 111.813);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.641 0.145 117.18);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.54 0.112 71.099);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.599 0.18 137.632);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.655 0.211 38.038);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.641 0.145 117.18);
  --chart-1: oklch(0.641 0.145 117.18);
  --chart-2: oklch(0.54 0.112 71.099);
  --chart-3: oklch(0.599 0.18 137.632);
  --chart-4: oklch(0.576 0.12 70.874);
  --chart-5: oklch(0.648 0.148 117.301);
}