Bladder for shadcn/ui

Bladder is a shadcn/ui theme built around a vivid deep green primary color (#011402) with vivid deep red accents (#140201). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#011402) on a green-tinted background (#050a05).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a05black
Foreground
#041506black
#ffffffwhite
Card
#fcfcfcsnow
#070e07black
Card foreground
#041104black
#ffffffwhite
Popover
#ffffffwhite
#050a05black
Popover foreground
#041506black
#ffffffwhite
Primary
#011402black
#011402black
Primary foreground
#08d916lime
#08d916lime
Secondary
#020114black
#020114black
Secondary foreground
#b5b0fclightsteelblue
#b5b0fclightsteelblue
Muted
#dedee3gainsboro
#1c1c21black
Muted foreground
#5b5973dimgray
#8e8ca6lightslategray
Accent
#140201black
#140201black
Accent foreground
#f9594etomato
#f9594etomato
Destructive
#7d220dmaroon
#e73e18orangered
Destructive foreground
#f9cdc3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#011402black
#011402black

Contrast

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

Light mode
Text on background18.83:1AAA
Text on card18.90:1AAA
Primary button9.95:1AAA
Secondary button10.41:1AAA
Muted text5.01:1AA
Accent6.32:1AA
Destructive6.94:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.57:1AAA
Primary button9.95:1AAA
Secondary button10.41:1AAA
Muted text5.20:1AA
Accent6.32:1AA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.175 0.04 145.372);
  --muted: oklch(0.902 0.007 289.341);
  --muted-foreground: oklch(0.475 0.042 287.718);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.175 0.04 145.372);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.159 0.035 145.64);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.166 0.05 144.833);
  --primary-foreground: oklch(0.767 0.257 142.811);
  --secondary: oklch(0.098 0.052 277.982);
  --secondary-foreground: oklch(0.79 0.107 286.73);
  --accent: oklch(0.128 0.04 33.086);
  --accent-foreground: oklch(0.676 0.197 27.633);
  --destructive: oklch(0.394 0.129 33.811);
  --destructive-foreground: oklch(0.883 0.052 32.796);
  --ring: oklch(0.166 0.05 144.833);
  --chart-1: oklch(0.166 0.05 144.833);
  --chart-2: oklch(0.098 0.052 277.982);
  --chart-3: oklch(0.128 0.04 33.086);
  --chart-4: oklch(0.127 0.072 275.059);
  --chart-5: oklch(0.167 0.051 144.749);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.016 146.708);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.23 0.009 288.698);
  --muted-foreground: oklch(0.65 0.039 288.312);
  --popover: oklch(0.137 0.016 146.708);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.152 0.018 146.559);
  --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.166 0.05 144.833);
  --primary-foreground: oklch(0.767 0.257 142.811);
  --secondary: oklch(0.098 0.052 277.982);
  --secondary-foreground: oklch(0.79 0.107 286.73);
  --accent: oklch(0.128 0.04 33.086);
  --accent-foreground: oklch(0.676 0.197 27.633);
  --destructive: oklch(0.614 0.21 33.473);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.166 0.05 144.833);
  --chart-1: oklch(0.166 0.05 144.833);
  --chart-2: oklch(0.098 0.052 277.982);
  --chart-3: oklch(0.128 0.04 33.086);
  --chart-4: oklch(0.127 0.072 275.059);
  --chart-5: oklch(0.167 0.051 144.749);
}