Bouncy is a shadcn/ui theme built around a purple primary color (#ab3ba2) with green accents (#3bab44). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the purple primary (#ab3ba2) on a purple-tinted background (#10050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #10050fblack |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fcf8fbsnow | #130612black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf8fbsnow | #130612black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #ab3ba2darkorchid | #ab3ba2darkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3bab44seagreen | #3bab44seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1f4f1whitesmoke | #0b0e0bblack |
| Muted foreground | #474847darkslategray | #b7b8b7silver |
| Accent | #3bab44seagreen | #3bab44seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #641807maroon | #e03610orangered |
| Destructive foreground | #f9b4a4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ab3ba2darkorchid | #ab3ba2darkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.48:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 5.43:1 | AA |
| Secondary button | 2.96:1 | Fail |
| Muted text | 8.27:1 | AAA |
| Accent | 2.96:1 | Fail |
| Destructive | 7.20:1 | AAA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 5.43:1 | AA |
| Secondary button | 2.96:1 | Fail |
| Muted text | 9.73:1 | AAA |
| Accent | 2.96:1 | Fail |
| Destructive | 4.46:1 | AA Large |
Paste this into your globals.css to use Bouncy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 328.093);
--foreground: oklch(0 0 0);
--muted: oklch(0.964 0.005 148.006);
--muted-foreground: oklch(0.4 0.003 147.989);
--popover: oklch(0.983 0.006 328.123);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.006 328.123);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.548 0.188 331.302);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.655 0.175 144.543);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.655 0.175 144.543);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.336 0.112 33.831);
--destructive-foreground: oklch(0.83 0.084 33.039);
--ring: oklch(0.548 0.188 331.302);
--chart-1: oklch(0.548 0.188 331.302);
--chart-2: oklch(0.655 0.175 144.543);
--chart-3: oklch(0.655 0.175 144.543);
--chart-4: oklch(0.687 0.184 144.525);
--chart-5: oklch(0.551 0.197 331.442);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.03 329.817);
--foreground: oklch(0.992 0.002 328.08);
--muted: oklch(0.161 0.008 147.506);
--muted-foreground: oklch(0.782 0.002 148.032);
--popover: oklch(0.152 0.034 330.079);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.152 0.034 330.079);
--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.548 0.188 331.302);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.655 0.175 144.543);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.655 0.175 144.543);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.594 0.211 33.1);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.548 0.188 331.302);
--chart-1: oklch(0.548 0.188 331.302);
--chart-2: oklch(0.655 0.175 144.543);
--chart-3: oklch(0.655 0.175 144.543);
--chart-4: oklch(0.687 0.184 144.525);
--chart-5: oklch(0.551 0.197 331.442);
}