bamboo ui for shadcn/ui

bamboo ui is a shadcn/ui theme built around a vivid light cyan primary color (#86eefe) with near-white accents (#f0f0f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light cyan primary (#86eefe) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#f8fbfcghostwhite
#000000black
Card foreground
#031012black
#fcfdfdwhite
Popover
#f8fbfcghostwhite
#000000black
Popover foreground
#031012black
#ffffffwhite
Primary
#86eefelightskyblue
#86eefelightskyblue
Primary foreground
#000000black
#000000black
Secondary
#fcbeeapink
#fcbeeapink
Secondary foreground
#000000black
#000000black
Muted
#f0f0f0whitesmoke
#454545darkslategray
Muted foreground
#888888gray
#959c9ddarkgray
Accent
#f0f0f0whitesmoke
#232d2fdarkslategray
Accent foreground
#000000black
#b9c9cbsilver
Destructive
#ff4c61tomato
#ff4c61tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#86eefelightskyblue
#232d2fdarkslategray
Input
#e2e8f0lavender
#242828darkslategray
Ring
#86effelightskyblue
#86eefelightskyblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card18.62:1AAA
Primary button15.64:1AAA
Secondary button13.69:1AAA
Muted text3.11:1AA Large
Accent18.42:1AAA
Destructive3.25:1AA Large
Dark mode
Text on background21.00:1AAA
Text on card20.60:1AAA
Primary button15.64:1AAA
Secondary button13.69:1AAA
Muted text3.45:1AA Large
Accent8.23:1AAA
Destructive3.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.955 0 180);
  --muted-foreground: oklch(0.627 0 168.69);
  --popover: oklch(0.987 0.004 207.917);
  --popover-foreground: oklch(0.159 0.021 206.674);
  --card: oklch(0.987 0.004 207.917);
  --card-foreground: oklch(0.159 0.021 206.674);
  --border: oklch(0.892 0.099 208.38);
  --input: oklch(0.929 0.013 255.515);
  --primary: oklch(0.891 0.099 208.381);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.871 0.09 337.284);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.955 0 180);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.675 0.214 18.645);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.894 0.1 207.496);
  --chart-1: oklch(0.891 0.099 208.381);
  --chart-2: oklch(0.871 0.09 337.284);
  --chart-3: oklch(0.955 0 180);
  --chart-4: oklch(0.899 0.07 336.84);
  --chart-5: oklch(0.894 0.102 208.427);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.389 0 180);
  --muted-foreground: oklch(0.687 0.008 207.885);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 207.929);
  --border: oklch(0.289 0.014 211.14);
  --input: oklch(0.272 0.005 207.867);
  --primary: oklch(0.891 0.099 208.381);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.871 0.09 337.284);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.289 0.015 207.846);
  --accent-foreground: oklch(0.823 0.018 207.858);
  --destructive: oklch(0.675 0.214 18.645);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.891 0.099 208.381);
  --chart-1: oklch(0.891 0.099 208.381);
  --chart-2: oklch(0.871 0.09 337.284);
  --chart-3: oklch(0.289 0.015 207.846);
  --chart-4: oklch(0.899 0.07 336.84);
  --chart-5: oklch(0.894 0.102 208.427);
}