Bouncy is a shadcn/ui theme built around a vivid red primary color (#b31c0f) with vivid cyan accents (#0fa6b3). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid red primary (#b31c0f) on a red-tinted background (#0c0403).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0c0403black |
| Foreground | #150605black | #fdfcfcsnow |
| Card | #fefcfbsnow | #0c0403black |
| Card foreground | #150605black | #fdfcfcsnow |
| Popover | #fefcfbsnow | #0c0403black |
| Popover foreground | #150605black | #fdfcfcsnow |
| Primary | #b31c0ffirebrick | #b31c0ffirebrick |
| Primary foreground | #fef6f6snow | #fef6f6snow |
| Secondary | #0fa6b3lightseagreen | #0fa6b3lightseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8ededlavender | #121717black |
| Muted foreground | #405354darkslategray | #abbebfsilver |
| Accent | #0fa6b3lightseagreen | #0fa6b3lightseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9a3009saddlebrown | #f46f3etomato |
| Destructive foreground | #fde2d8mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b31c0ffirebrick | #b31c0ffirebrick |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 2.96:1 | Fail |
| Muted text | 6.87:1 | AA |
| Accent | 2.96:1 | Fail |
| Destructive | 6.08:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 2.96:1 | Fail |
| Muted text | 9.36:1 | AAA |
| Accent | 2.96:1 | Fail |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Bouncy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 23.602);
--foreground: oklch(0.148 0.027 28.182);
--muted: oklch(0.942 0.006 203.526);
--muted-foreground: oklch(0.425 0.024 203.186);
--popover: oklch(0.991 0.002 23.602);
--popover-foreground: oklch(0.148 0.027 28.182);
--card: oklch(0.991 0.002 23.602);
--card-foreground: oklch(0.148 0.027 28.182);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.494 0.186 30.078);
--primary-foreground: oklch(0.98 0.009 23.667);
--secondary: oklch(0.661 0.111 205.428);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.661 0.111 205.428);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.464 0.148 37.258);
--destructive-foreground: oklch(0.932 0.032 41.077);
--ring: oklch(0.494 0.186 30.078);
--chart-1: oklch(0.494 0.186 30.078);
--chart-2: oklch(0.661 0.111 205.428);
--chart-3: oklch(0.661 0.111 205.428);
--chart-4: oklch(0.7 0.118 205.473);
--chart-5: oklch(0.498 0.191 30.093);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.018 28.183);
--foreground: oklch(0.992 0.001 23.588);
--muted: oklch(0.198 0.008 203.264);
--muted-foreground: oklch(0.787 0.021 203.356);
--popover: oklch(0.122 0.018 28.183);
--popover-foreground: oklch(0.992 0.001 23.588);
--card: oklch(0.122 0.018 28.183);
--card-foreground: oklch(0.992 0.001 23.588);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.494 0.186 30.078);
--primary-foreground: oklch(0.98 0.009 23.667);
--secondary: oklch(0.661 0.111 205.428);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.661 0.111 205.428);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.694 0.176 39.685);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.494 0.186 30.078);
--chart-1: oklch(0.494 0.186 30.078);
--chart-2: oklch(0.661 0.111 205.428);
--chart-3: oklch(0.661 0.111 205.428);
--chart-4: oklch(0.7 0.118 205.473);
--chart-5: oklch(0.498 0.191 30.093);
}