Bloom for shadcn/ui

Bloom is a shadcn/ui theme built around a light indigo primary color (#bbbdec) with light green accents (#bdecbb). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the light indigo primary (#bbbdec) on an indigo-tinted background (#050510).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#050510black
Foreground
#010104black
#ffffffwhite
Card
#f2f3fcaliceblue
#060614black
Card foreground
#000000black
#ffffffwhite
Popover
#f7f7fdghostwhite
#050510black
Popover foreground
#010104black
#ffffffwhite
Primary
#bbbdeclightsteelblue
#bbbdeclightsteelblue
Primary foreground
#191b5cmidnightblue
#191b5cmidnightblue
Secondary
#ecbbbdlightpink
#ecbbbdlightpink
Secondary foreground
#5c191bmaroon
#5c191bmaroon
Muted
#ece9e9linen
#161313black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#bdecbblightgrey
#bdecbblightgrey
Accent foreground
#1b5c19darkgreen
#1b5c19darkgreen
Destructive
#8d240csaddlebrown
#ed5735tomato
Destructive foreground
#fbd8d0bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bbbdeclightsteelblue
#bbbdeclightsteelblue

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card18.99:1AAA
Primary button8.55:1AAA
Secondary button7.71:1AAA
Muted text4.98:1AA
Accent6.13:1AA
Destructive6.64:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.09:1AAA
Primary button8.55:1AAA
Secondary button7.71:1AAA
Muted text6.73:1AA
Accent6.13:1AA
Destructive6.03:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.008 284.656);
  --foreground: oklch(0.074 0.018 278.757);
  --muted: oklch(0.937 0.003 14.852);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.977 0.008 284.656);
  --popover-foreground: oklch(0.074 0.018 278.757);
  --card: oklch(0.966 0.013 284.576);
  --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.812 0.067 283.246);
  --primary-foreground: oklch(0.271 0.113 274.403);
  --secondary: oklch(0.836 0.057 16.124);
  --secondary-foreground: oklch(0.325 0.097 22.586);
  --accent: oklch(0.898 0.083 144.001);
  --accent-foreground: oklch(0.419 0.119 142.64);
  --destructive: oklch(0.427 0.144 33.604);
  --destructive-foreground: oklch(0.909 0.041 32.739);
  --ring: oklch(0.812 0.067 283.246);
  --chart-1: oklch(0.812 0.067 283.246);
  --chart-2: oklch(0.836 0.057 16.124);
  --chart-3: oklch(0.898 0.083 144.001);
  --chart-4: oklch(0.865 0.046 15.824);
  --chart-5: oklch(0.809 0.071 283.149);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.026 279.717);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.19 0.005 15.255);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.122 0.026 279.717);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.133 0.03 279.505);
  --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.812 0.067 283.246);
  --primary-foreground: oklch(0.271 0.113 274.403);
  --secondary: oklch(0.836 0.057 16.124);
  --secondary-foreground: oklch(0.325 0.097 22.586);
  --accent: oklch(0.898 0.083 144.001);
  --accent-foreground: oklch(0.419 0.119 142.64);
  --destructive: oklch(0.653 0.192 34.12);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.812 0.067 283.246);
  --chart-1: oklch(0.812 0.067 283.246);
  --chart-2: oklch(0.836 0.057 16.124);
  --chart-3: oklch(0.898 0.083 144.001);
  --chart-4: oklch(0.865 0.046 15.824);
  --chart-5: oklch(0.809 0.071 283.149);
}