Bouncy for shadcn/ui

Bouncy is a shadcn/ui theme built around a vivid green primary color (#03a028) with neutral gray accents (#b8c1ba). The light mode uses a neutral background (#f7fcf9). Dark mode keeps the vivid green primary (#03a028) on a green-tinted background (#051007).

Color palette

TokenLightDark
Background
#f7fcf9mintcream
#051007black
Foreground
#030c05black
#f6f9f6whitesmoke
Card
#f4fbf5whitesmoke
#061309black
Card foreground
#020803black
#f9fbf9mintcream
Popover
#f4fbf5whitesmoke
#061309black
Popover foreground
#020803black
#f9fbf9mintcream
Primary
#03a028forestgreen
#03a028forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ced0celightgrey
#191a19black
Secondary foreground
#343735darkslategray
#b2b3b2darkgray
Muted
#ebefecwhitesmoke
#101411black
Muted foreground
#435146darkslategray
#aebcb2darkgray
Accent
#b8c1basilver
#2b312cdarkslategray
Accent foreground
#212622black
#c3cbc5silver
Destructive
#712f09saddlebrown
#ec6618chocolate
Destructive foreground
#f9cdb4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#03a028forestgreen
#03a028forestgreen

Contrast

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

Light mode
Text on background19.18:1AAA
Text on card19.22:1AAA
Primary button3.46:1AA Large
Secondary button7.72:1AAA
Muted text7.22:1AAA
Accent8.35:1AAA
Destructive6.79:1AA
Dark mode
Text on background18.32:1AAA
Text on card18.23:1AAA
Primary button3.46:1AA Large
Secondary button8.30:1AAA
Muted text9.43:1AAA
Accent8.02:1AAA
Destructive6.47:1AA

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.007 153.12);
  --foreground: oklch(0.142 0.025 152.265);
  --muted: oklch(0.948 0.005 153.15);
  --muted-foreground: oklch(0.419 0.024 152.274);
  --popover: oklch(0.981 0.011 153.058);
  --popover-foreground: oklch(0.123 0.022 152.436);
  --card: oklch(0.981 0.011 153.058);
  --card-foreground: oklch(0.123 0.022 152.436);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.613 0.194 144.651);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.854 0.003 153.185);
  --secondary-foreground: oklch(0.333 0.004 153.039);
  --accent: oklch(0.803 0.014 152.949);
  --accent-foreground: oklch(0.263 0.01 152.599);
  --destructive: oklch(0.393 0.104 45.4);
  --destructive-foreground: oklch(0.88 0.061 51.706);
  --ring: oklch(0.613 0.194 144.651);
  --chart-1: oklch(0.613 0.194 144.651);
  --chart-2: oklch(0.854 0.003 153.185);
  --chart-3: oklch(0.803 0.014 152.949);
  --chart-4: oklch(0.878 0.002 153.195);
  --chart-5: oklch(0.62 0.198 144.513);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.025 151.786);
  --foreground: oklch(0.979 0.005 153.159);
  --muted: oklch(0.185 0.008 152.526);
  --muted-foreground: oklch(0.781 0.02 152.806);
  --popover: oklch(0.172 0.029 150.903);
  --popover-foreground: oklch(0.986 0.003 153.186);
  --card: oklch(0.172 0.029 150.903);
  --card-foreground: oklch(0.986 0.003 153.186);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.613 0.194 144.651);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.216 0.001 153.158);
  --secondary-foreground: oklch(0.766 0.002 153.19);
  --accent: oklch(0.306 0.012 152.556);
  --accent-foreground: oklch(0.834 0.012 153.006);
  --destructive: oklch(0.668 0.184 44.46);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.613 0.194 144.651);
  --chart-1: oklch(0.613 0.194 144.651);
  --chart-2: oklch(0.216 0.001 153.158);
  --chart-3: oklch(0.306 0.012 152.556);
  --chart-4: oklch(0.249 0.001 153.151);
  --chart-5: oklch(0.62 0.198 144.513);
}