Bouncy for shadcn/ui

Bouncy is a shadcn/ui theme built around a vivid green primary color (#7ef199) with muted light green accents (#e9edea). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#7ef199) on a green-tinted background (#050b06).

Color palette

TokenLightDark
Background
#ffffffwhite
#050b06black
Foreground
#041508black
#ffffffwhite
Card
#ffffffwhite
#050b06black
Card foreground
#041508black
#ffffffwhite
Popover
#ffffffwhite
#050b06black
Popover foreground
#041508black
#ffffffwhite
Primary
#7ef199lightgreen
#7ef199lightgreen
Primary foreground
#063712darkgreen
#063712darkgreen
Secondary
#e9edealinen
#1a231cblack
Secondary foreground
#495a4ddarkslategray
#adc2b2silver
Muted
#e2eee5gainsboro
#111d14black
Muted foreground
#516756dimgray
#98ae9ddarkgray
Accent
#e9edealinen
#1a231cblack
Accent foreground
#495a4ddarkslategray
#adc2b2silver
Destructive
#762104maroon
#f75722orangered
Destructive foreground
#fcc3b0lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7ef199lightgreen
#7ef199lightgreen

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button9.53:1AAA
Secondary button6.20:1AA
Muted text5.13:1AA
Accent6.20:1AA
Destructive6.82:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button9.53:1AAA
Secondary button8.54:1AAA
Muted text7.34:1AAA
Accent8.54:1AAA
Destructive6.33:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.177 0.036 150.495);
  --muted: oklch(0.938 0.018 152.932);
  --muted-foreground: oklch(0.49 0.038 151.909);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.177 0.036 150.495);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.177 0.036 150.495);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.868 0.16 149.594);
  --primary-foreground: oklch(0.296 0.081 146.893);
  --secondary: oklch(0.941 0.006 153.136);
  --secondary-foreground: oklch(0.449 0.029 152.15);
  --accent: oklch(0.941 0.006 153.136);
  --accent-foreground: oklch(0.449 0.029 152.15);
  --destructive: oklch(0.381 0.124 36.649);
  --destructive-foreground: oklch(0.864 0.071 39.231);
  --ring: oklch(0.868 0.16 149.594);
  --chart-1: oklch(0.868 0.16 149.594);
  --chart-2: oklch(0.941 0.006 153.136);
  --chart-3: oklch(0.941 0.006 153.136);
  --chart-4: oklch(0.963 0.004 153.177);
  --chart-5: oklch(0.872 0.166 149.464);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 152.68);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.216 0.025 151.178);
  --muted-foreground: oklch(0.73 0.034 152.447);
  --popover: oklch(0.138 0.017 152.68);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.017 152.68);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.868 0.16 149.594);
  --primary-foreground: oklch(0.296 0.081 146.893);
  --secondary: oklch(0.245 0.019 151.925);
  --secondary-foreground: oklch(0.794 0.033 152.549);
  --accent: oklch(0.245 0.019 151.925);
  --accent-foreground: oklch(0.794 0.033 152.549);
  --destructive: oklch(0.666 0.205 37.172);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.868 0.16 149.594);
  --chart-1: oklch(0.868 0.16 149.594);
  --chart-2: oklch(0.245 0.019 151.925);
  --chart-3: oklch(0.245 0.019 151.925);
  --chart-4: oklch(0.279 0.023 151.837);
  --chart-5: oklch(0.872 0.166 149.464);
}