Bouncy is a shadcn/ui theme built around a light purple primary color (#efc2e5) with light pink accents (#efc2ce). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the light purple primary (#efc2e5) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #040103black |
| Foreground | #000000black | #fbf9fbsnow |
| Card | #fcf8fbsnow | #040103black |
| Card foreground | #000000black | #fbf9fbsnow |
| Popover | #fcf8fbsnow | #040103black |
| Popover foreground | #000000black | #fbf9fbsnow |
| Primary | #efc2e5thistle | #efc2e5thistle |
| Primary foreground | #651a54purple | #651a54purple |
| Secondary | #e3c2efthistle | #e3c2efthistle |
| Secondary foreground | #511a65indigo | #511a65indigo |
| Muted | #e1d0e7gainsboro | #29182fdarkslategray |
| Muted foreground | #433847darkslategray | #c3b8c7silver |
| Accent | #efc2cepink | #efc2cepink |
| Accent foreground | #651a2emaroon | #651a2emaroon |
| Destructive | #c2380afirebrick | #f56b3dtomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #efc2e5thistle | #efc2e5thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 7.40:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 5.43:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.40:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 8.67:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 7.05:1 | AAA |
Paste this into your globals.css to use Bouncy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 333.353);
--foreground: oklch(0 0 0);
--muted: oklch(0.878 0.036 317.096);
--muted-foreground: oklch(0.359 0.03 316.998);
--popover: oklch(0.982 0.007 333.353);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.007 333.353);
--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.864 0.068 334.463);
--primary-foreground: oklch(0.364 0.127 338.717);
--secondary: oklch(0.857 0.071 316.999);
--secondary-foreground: oklch(0.342 0.131 315.495);
--accent: oklch(0.857 0.054 0.508);
--accent-foreground: oklch(0.348 0.108 8.872);
--destructive: oklch(0.543 0.181 35.917);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.864 0.068 334.463);
--chart-1: oklch(0.864 0.068 334.463);
--chart-2: oklch(0.857 0.071 316.999);
--chart-3: oklch(0.857 0.054 0.508);
--chart-4: oklch(0.886 0.056 317.044);
--chart-5: oklch(0.864 0.072 334.524);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.014 333.838);
--foreground: oklch(0.983 0.004 333.304);
--muted: oklch(0.243 0.048 316.671);
--muted-foreground: oklch(0.795 0.025 317.119);
--popover: oklch(0.087 0.014 333.838);
--popover-foreground: oklch(0.983 0.004 333.304);
--card: oklch(0.087 0.014 333.838);
--card-foreground: oklch(0.983 0.004 333.304);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.864 0.068 334.463);
--primary-foreground: oklch(0.364 0.127 338.717);
--secondary: oklch(0.857 0.071 316.999);
--secondary-foreground: oklch(0.342 0.131 315.495);
--accent: oklch(0.857 0.054 0.508);
--accent-foreground: oklch(0.348 0.108 8.872);
--destructive: oklch(0.69 0.18 38.439);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.864 0.068 334.463);
--chart-1: oklch(0.864 0.068 334.463);
--chart-2: oklch(0.857 0.071 316.999);
--chart-3: oklch(0.857 0.054 0.508);
--chart-4: oklch(0.886 0.056 317.044);
--chart-5: oklch(0.864 0.072 334.524);
}