Bamboo Theme for shadcn/ui

Bamboo Theme is a shadcn/ui theme built around a vivid blue primary color (#61b8fa) with vivid pink accents (#fb548d). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid blue primary (#5fb8fa) on an indigo-tinted background (#181820).

Color palette

TokenLightDark
Background
#fbfdfewhite
#181820black
Foreground
#050b10black
#f8fbfcghostwhite
Card
#fbfdfewhite
#181820black
Card foreground
#050b10black
#f8fbfcghostwhite
Popover
#fbfdfewhite
#181820black
Popover foreground
#050b10black
#f8fbfcghostwhite
Primary
#61b8facornflowerblue
#5fb8facornflowerblue
Primary foreground
#ffffffwhite
#181820black
Secondary
#fb548dpalevioletred
#fb548dpalevioletred
Secondary foreground
#ffffffwhite
#181820black
Muted
#ebf0efwhitesmoke
#888888gray
Muted foreground
#fdfdfdwhite
#f0f0f0whitesmoke
Accent
#fb548dpalevioletred
#fb548dpalevioletred
Accent foreground
#ffffffwhite
#f8fbfcghostwhite
Destructive
#da0d0dred
#888888gray
Destructive foreground
#feececlinen
#f8fbfcghostwhite
Border
#e4e6e7gainsboro
#343343darkslategray
Input
#e4e6e7gainsboro
#222425darkslategray
Ring
#61b8facornflowerblue
#343343darkslategray

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button2.16:1Fail
Secondary button3.10:1AA Large
Muted text1.13:1Fail
Accent3.10:1AA Large
Destructive4.56:1AA
Dark mode
Text on background16.96:1AAA
Text on card16.96:1AAA
Primary button8.16:1AAA
Secondary button5.67:1AA
Muted text3.11:1AA Large
Accent2.98:1Fail
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 240.319);
  --foreground: oklch(0.144 0.016 237.435);
  --muted: oklch(0.95 0.005 192.309);
  --muted-foreground: oklch(0.994 0 192.529);
  --popover: oklch(0.992 0.003 240.319);
  --popover-foreground: oklch(0.144 0.016 237.435);
  --card: oklch(0.992 0.003 240.319);
  --card-foreground: oklch(0.144 0.016 237.435);
  --border: oklch(0.923 0.002 240.316);
  --input: oklch(0.923 0.002 240.316);
  --primary: oklch(0.755 0.128 243.772);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.687 0.206 3.427);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.687 0.206 3.427);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.561 0.225 28.761);
  --destructive-foreground: oklch(0.956 0.02 17.512);
  --ring: oklch(0.755 0.128 243.772);
  --chart-1: oklch(0.755 0.128 243.772);
  --chart-2: oklch(0.687 0.206 3.427);
  --chart-3: oklch(0.687 0.206 3.427);
  --chart-4: oklch(0.707 0.191 2.091);
  --chart-5: oklch(0.756 0.131 243.934);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.213 0.016 284.99);
  --foreground: oklch(0.986 0.003 219.533);
  --muted: oklch(0.627 0 168.69);
  --muted-foreground: oklch(0.955 0 180);
  --popover: oklch(0.213 0.016 284.99);
  --popover-foreground: oklch(0.986 0.003 219.533);
  --card: oklch(0.213 0.016 284.99);
  --card-foreground: oklch(0.986 0.003 219.533);
  --border: oklch(0.329 0.028 287.609);
  --input: oklch(0.259 0.004 240.506);
  --primary: oklch(0.755 0.128 243.083);
  --primary-foreground: oklch(0.213 0.016 284.99);
  --secondary: oklch(0.687 0.206 3.427);
  --secondary-foreground: oklch(0.213 0.016 284.99);
  --accent: oklch(0.687 0.206 3.427);
  --accent-foreground: oklch(0.986 0.003 219.533);
  --destructive: oklch(0.627 0 168.69);
  --destructive-foreground: oklch(0.986 0.003 219.533);
  --ring: oklch(0.329 0.028 287.609);
  --chart-1: oklch(0.755 0.128 243.083);
  --chart-2: oklch(0.687 0.206 3.427);
  --chart-3: oklch(0.687 0.206 3.427);
  --chart-4: oklch(0.707 0.191 2.091);
  --chart-5: oklch(0.756 0.132 243.254);
}