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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.81:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 9.53:1 | AAA |
| Secondary button | 6.20:1 | AA |
| Muted text | 5.13:1 | AA |
| Accent | 6.20:1 | AA |
| Destructive | 6.82:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 9.53:1 | AAA |
| Secondary button | 8.54:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 8.54:1 | AAA |
| Destructive | 6.33:1 | AA |
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);
}