Bouncy for shadcn/ui

Bouncy is a shadcn/ui theme built around a vivid deep cyan primary color (#03272a) with vivid deep green accents (#272a03). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the vivid deep cyan primary (#03272a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#000000black
Foreground
#030c0cblack
#f8fbfcghostwhite
Card
#f5f9faghostwhite
#030303black
Card foreground
#020808black
#fcfdfdwhite
Popover
#f8fbfcghostwhite
#000000black
Popover foreground
#030c0cblack
#f8fbfcghostwhite
Primary
#03272ablack
#03272ablack
Primary foreground
#13d5e7darkturquoise
#13d5e7darkturquoise
Secondary
#2a0327black
#2a0327black
Secondary foreground
#f36de8violet
#f36de8violet
Muted
#ebdbe9gainsboro
#241422black
Muted foreground
#6f5d6edimgray
#a290a1darkgray
Accent
#272a03black
#272a03black
Accent foreground
#d5e713gold
#d5e713gold
Destructive
#7a2306maroon
#f66b3ctomato
Destructive foreground
#fcc7b6peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#03272ablack
#03272ablack

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.08:1AAA
Primary button8.78:1AAA
Secondary button7.13:1AAA
Muted text4.57:1AA
Accent10.70:1AAA
Destructive6.77:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.29:1AAA
Primary button8.78:1AAA
Secondary button7.13:1AAA
Muted text5.86:1AA
Accent10.70:1AAA
Destructive7.06:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.003 203.55);
  --foreground: oklch(0.142 0.016 201.477);
  --muted: oklch(0.909 0.025 328.345);
  --muted-foreground: oklch(0.502 0.035 328.764);
  --popover: oklch(0.987 0.003 203.55);
  --popover-foreground: oklch(0.142 0.016 201.477);
  --card: oklch(0.98 0.005 203.535);
  --card-foreground: oklch(0.124 0.014 200.911);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.251 0.04 203.865);
  --primary-foreground: oklch(0.799 0.135 205.572);
  --secondary: oklch(0.204 0.082 331.75);
  --secondary-foreground: oklch(0.738 0.217 330.825);
  --accent: oklch(0.275 0.058 114.282);
  --accent-foreground: oklch(0.885 0.198 115.278);
  --destructive: oklch(0.39 0.126 36.66);
  --destructive-foreground: oklch(0.872 0.065 39.24);
  --ring: oklch(0.251 0.04 203.865);
  --chart-1: oklch(0.251 0.04 203.865);
  --chart-2: oklch(0.204 0.082 331.75);
  --chart-3: oklch(0.275 0.058 114.282);
  --chart-4: oklch(0.243 0.1 331.995);
  --chart-5: oklch(0.253 0.041 203.915);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.003 203.55);
  --muted: oklch(0.22 0.035 329.601);
  --muted-foreground: oklch(0.674 0.032 328.553);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.003 203.55);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.002 203.566);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.251 0.04 203.865);
  --primary-foreground: oklch(0.799 0.135 205.572);
  --secondary: oklch(0.204 0.082 331.75);
  --secondary-foreground: oklch(0.738 0.217 330.825);
  --accent: oklch(0.275 0.058 114.282);
  --accent-foreground: oklch(0.885 0.198 115.278);
  --destructive: oklch(0.691 0.182 38.399);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.251 0.04 203.865);
  --chart-1: oklch(0.251 0.04 203.865);
  --chart-2: oklch(0.204 0.082 331.75);
  --chart-3: oklch(0.275 0.058 114.282);
  --chart-4: oklch(0.243 0.1 331.995);
  --chart-5: oklch(0.253 0.041 203.915);
}