Bumpy is a shadcn/ui theme built around a vivid deep violet primary color (#0a0317) with vivid deep green accents (#101703). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#0a0317) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020104black |
| Foreground | #06020dblack | #f7f6f9whitesmoke |
| Card | #ffffffwhite | #020104black |
| Card foreground | #06020dblack | #f7f6f9whitesmoke |
| Popover | #ffffffwhite | #020104black |
| Popover foreground | #06020dblack | #f7f6f9whitesmoke |
| Primary | #0a0317black | #0a0317black |
| Primary foreground | #d0bbf6thistle | #d0bbf6thistle |
| Secondary | #101703black | #101703black |
| Secondary foreground | #8dcb1ayellowgreen | #8dcb1ayellowgreen |
| Muted | #f0f2eewhitesmoke | #10110dblack |
| Muted foreground | #575e4adarkolivegreen | #aeb5a1darkgray |
| Accent | #101703black | #101703black |
| Accent foreground | #8dcb1ayellowgreen | #8dcb1ayellowgreen |
| Destructive | #7c1903maroon | #f9431aorangered |
| Destructive foreground | #fdc2b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a0317black | #0a0317black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.54:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 11.68:1 | AAA |
| Secondary button | 9.36:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 9.36:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 11.68:1 | AAA |
| Secondary button | 9.36:1 | AAA |
| Muted text | 8.94:1 | AAA |
| Accent | 9.36:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Bumpy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.107 0.036 302.719);
--muted: oklch(0.958 0.005 122.296);
--muted-foreground: oklch(0.471 0.033 123.329);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.107 0.036 302.719);
--card: oklch(1 0 180);
--card-foreground: oklch(0.107 0.036 302.719);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.128 0.047 299.194);
--primary-foreground: oklch(0.83 0.084 300.605);
--secondary: oklch(0.189 0.039 124.807);
--secondary-foreground: oklch(0.771 0.198 128.757);
--accent: oklch(0.189 0.039 124.807);
--accent-foreground: oklch(0.771 0.198 128.757);
--destructive: oklch(0.385 0.137 33.446);
--destructive-foreground: oklch(0.863 0.071 32.921);
--ring: oklch(0.128 0.047 299.194);
--chart-1: oklch(0.128 0.047 299.194);
--chart-2: oklch(0.189 0.039 124.807);
--chart-3: oklch(0.189 0.039 124.807);
--chart-4: oklch(0.242 0.054 126.387);
--chart-5: oklch(0.127 0.049 299.109);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.08 0.017 302.882);
--foreground: oklch(0.975 0.003 302.159);
--muted: oklch(0.175 0.008 122.907);
--muted-foreground: oklch(0.762 0.029 122.821);
--popover: oklch(0.08 0.017 302.882);
--popover-foreground: oklch(0.975 0.003 302.159);
--card: oklch(0.08 0.017 302.882);
--card-foreground: oklch(0.975 0.003 302.159);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.128 0.047 299.194);
--primary-foreground: oklch(0.83 0.084 300.605);
--secondary: oklch(0.189 0.039 124.807);
--secondary-foreground: oklch(0.771 0.198 128.757);
--accent: oklch(0.189 0.039 124.807);
--accent-foreground: oklch(0.771 0.198 128.757);
--destructive: oklch(0.649 0.224 33.44);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.128 0.047 299.194);
--chart-1: oklch(0.128 0.047 299.194);
--chart-2: oklch(0.189 0.039 124.807);
--chart-3: oklch(0.189 0.039 124.807);
--chart-4: oklch(0.242 0.054 126.387);
--chart-5: oklch(0.127 0.049 299.109);
}