Bouncy for shadcn/ui

Bouncy is a shadcn/ui theme built around a green primary color (#2abc20) with green accents (#20bc63). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#2abc20) on a green-tinted background (#050b05).

Color palette

TokenLightDark
Background
#fbfefbwhite
#050b05black
Foreground
#030802black
#f5faf5whitesmoke
Card
#f8fdf7mintcream
#070e06black
Card foreground
#010401black
#f8fcf8mintcream
Popover
#f8fdf7mintcream
#070e06black
Popover foreground
#010401black
#f8fcf8mintcream
Primary
#2abc20limegreen
#2abc20limegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#78bc20yellowgreen
#78bc20yellowgreen
Secondary foreground
#080d02black
#080d02black
Muted
#e2ead7gainsboro
#202815black
Muted foreground
#505648darkolivegreen
#b1b7a9darkgray
Accent
#20bc63mediumseagreen
#20bc63mediumseagreen
Accent foreground
#020d07black
#020d07black
Destructive
#883007saddlebrown
#f57438tomato
Destructive foreground
#fcd6c5peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2abc20limegreen
#2abc20limegreen

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.93:1AAA
Primary button2.53:1Fail
Secondary button8.39:1AAA
Muted text6.11:1AA
Accent7.89:1AAA
Destructive6.31:1AA
Dark mode
Text on background18.83:1AAA
Text on card18.83:1AAA
Primary button2.53:1Fail
Secondary button8.39:1AAA
Muted text7.44:1AAA
Accent7.89:1AAA
Destructive7.41:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 143.612);
  --foreground: oklch(0.122 0.022 141.994);
  --muted: oklch(0.925 0.026 126.116);
  --muted-foreground: oklch(0.444 0.024 126.476);
  --popover: oklch(0.988 0.009 143.589);
  --popover-foreground: oklch(0.097 0.018 141.994);
  --card: oklch(0.988 0.009 143.589);
  --card-foreground: oklch(0.097 0.018 141.994);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.693 0.221 142.136);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.721 0.188 131.457);
  --secondary-foreground: oklch(0.15 0.028 125.184);
  --accent: oklch(0.698 0.176 151.84);
  --accent-foreground: oklch(0.144 0.025 161.234);
  --destructive: oklch(0.432 0.129 40.519);
  --destructive-foreground: oklch(0.904 0.048 46.329);
  --ring: oklch(0.693 0.221 142.136);
  --chart-1: oklch(0.693 0.221 142.136);
  --chart-2: oklch(0.721 0.188 131.457);
  --chart-3: oklch(0.698 0.176 151.84);
  --chart-4: oklch(0.758 0.199 131.499);
  --chart-5: oklch(0.701 0.226 142.147);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.02 142.398);
  --foreground: oklch(0.98 0.009 143.588);
  --muted: oklch(0.262 0.034 127.652);
  --muted-foreground: oklch(0.771 0.021 126.106);
  --popover: oklch(0.154 0.023 142.474);
  --popover-foreground: oklch(0.987 0.006 143.604);
  --card: oklch(0.154 0.023 142.474);
  --card-foreground: oklch(0.987 0.006 143.604);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.693 0.221 142.136);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.721 0.188 131.457);
  --secondary-foreground: oklch(0.15 0.028 125.184);
  --accent: oklch(0.698 0.176 151.84);
  --accent-foreground: oklch(0.144 0.025 161.234);
  --destructive: oklch(0.702 0.174 43.268);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.693 0.221 142.136);
  --chart-1: oklch(0.693 0.221 142.136);
  --chart-2: oklch(0.721 0.188 131.457);
  --chart-3: oklch(0.698 0.176 151.84);
  --chart-4: oklch(0.758 0.199 131.499);
  --chart-5: oklch(0.701 0.226 142.147);
}