Bladder for shadcn/ui

Bladder is a shadcn/ui theme built around an indigo primary color (#6f67cb) with muted light indigo accents (#d3d2da). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the indigo primary (#6f67cb) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#020203black
Foreground
#020109black
#f9f9fbghostwhite
Card
#f8f8fcghostwhite
#020203black
Card foreground
#020109black
#f9f9fbghostwhite
Popover
#f8f8fcghostwhite
#020203black
Popover foreground
#020109black
#f9f9fbghostwhite
Primary
#6f67cbslateblue
#6f67cbslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d3d2dalightgrey
#1d1d26black
Secondary foreground
#383743darkslategray
#b2b1c4silver
Muted
#d9d8dfgainsboro
#212027black
Muted foreground
#464649darkslategray
#b6b6b9silver
Accent
#d3d2dalightgrey
#1d1d26black
Accent foreground
#383743darkslategray
#b2b1c4silver
Destructive
#8c0503darkred
#fa0e0ared
Destructive foreground
#fec4c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6f67cbslateblue
#6f67cbslateblue

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button4.68:1AA
Secondary button7.80:1AAA
Muted text6.64:1AA
Accent7.80:1AAA
Destructive6.50:1AA
Dark mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button4.68:1AA
Secondary button7.97:1AAA
Muted text7.94:1AAA
Accent7.97:1AAA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 290.14);
  --foreground: oklch(0.086 0.03 284.965);
  --muted: oklch(0.885 0.009 290.06);
  --muted-foreground: oklch(0.395 0.005 290.02);
  --popover: oklch(0.98 0.006 290.14);
  --popover-foreground: oklch(0.086 0.03 284.965);
  --card: oklch(0.98 0.006 290.14);
  --card-foreground: oklch(0.086 0.03 284.965);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.57 0.15 284.366);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.867 0.011 290.004);
  --secondary-foreground: oklch(0.343 0.021 289.047);
  --accent: oklch(0.867 0.011 290.004);
  --accent-foreground: oklch(0.343 0.021 289.047);
  --destructive: oklch(0.404 0.163 29.233);
  --destructive-foreground: oklch(0.872 0.066 19.634);
  --ring: oklch(0.57 0.15 284.366);
  --chart-1: oklch(0.57 0.15 284.366);
  --chart-2: oklch(0.867 0.011 290.004);
  --chart-3: oklch(0.867 0.011 290.004);
  --chart-4: oklch(0.892 0.009 290.056);
  --chart-5: oklch(0.564 0.159 283.856);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.01 288.636);
  --foreground: oklch(0.982 0.003 290.187);
  --muted: oklch(0.249 0.012 289.314);
  --muted-foreground: oklch(0.778 0.004 290.15);
  --popover: oklch(0.082 0.01 288.636);
  --popover-foreground: oklch(0.982 0.003 290.187);
  --card: oklch(0.082 0.01 288.636);
  --card-foreground: oklch(0.982 0.003 290.187);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.57 0.15 284.366);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.234 0.018 288.764);
  --secondary-foreground: oklch(0.766 0.027 289.566);
  --accent: oklch(0.234 0.018 288.764);
  --accent-foreground: oklch(0.766 0.027 289.566);
  --destructive: oklch(0.621 0.251 29.118);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.57 0.15 284.366);
  --chart-1: oklch(0.57 0.15 284.366);
  --chart-2: oklch(0.234 0.018 288.764);
  --chart-3: oklch(0.234 0.018 288.764);
  --chart-4: oklch(0.263 0.021 288.664);
  --chart-5: oklch(0.564 0.159 283.856);
}