Bubbly is a shadcn/ui theme built around a vivid yellow primary color (#f9f22f) with vivid purple accents (#f22ff9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#f9f22f) on a yellow-tinted background (#0b0b04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0b04black |
| Foreground | #000000black | #fbfbf8snow |
| Card | #fcfcfcsnow | #0f0e06black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0b0b04black |
| Popover foreground | #000000black | #fbfbf8snow |
| Primary | #f9f22fyellow | #f9f22fyellow |
| Primary foreground | #595603darkolivegreen | #595603darkolivegreen |
| Secondary | #2ff9f2turquoise | #2ff9f2turquoise |
| Secondary foreground | #035956darkslategray | #035956darkslategray |
| Muted | #e5f0f0lavender | #0f1a19black |
| Muted foreground | #576b6adimgray | #94a8a7darkgray |
| Accent | #f22ff9magenta | #f22ff9magenta |
| Accent foreground | #000000black | #000000black |
| Destructive | #bd0505firebrick | #ea0606red |
| Destructive foreground | #fff5f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9f22fyellow | #f9f22fyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 6.19:1 | AA |
| Muted text | 4.85:1 | AA |
| Accent | 6.54:1 | AA |
| Destructive | 6.16:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 6.19:1 | AA |
| Muted text | 7.13:1 | AAA |
| Accent | 6.54:1 | AA |
| Destructive | 4.64:1 | AA |
Paste this into your globals.css to use Bubbly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.947 0.011 194.568);
--muted-foreground: oklch(0.51 0.023 193.952);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.937 0.192 107.435);
--primary-foreground: oklch(0.442 0.094 107.411);
--secondary: oklch(0.889 0.146 191.229);
--secondary-foreground: oklch(0.42 0.071 190.944);
--accent: oklch(0.692 0.296 326.64);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.503 0.204 29);
--destructive-foreground: oklch(0.978 0.01 17.334);
--ring: oklch(0.937 0.192 107.435);
--chart-1: oklch(0.937 0.192 107.435);
--chart-2: oklch(0.889 0.146 191.229);
--chart-3: oklch(0.692 0.296 326.64);
--chart-4: oklch(0.893 0.142 191.46);
--chart-5: oklch(0.945 0.195 107.427);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.016 106.86);
--foreground: oklch(0.988 0.004 104.879);
--muted: oklch(0.206 0.015 193.422);
--muted-foreground: oklch(0.716 0.022 194.229);
--popover: oklch(0.146 0.016 106.86);
--popover-foreground: oklch(0.988 0.004 104.879);
--card: oklch(0.163 0.019 106.727);
--card-foreground: oklch(0.994 0.002 104.843);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.937 0.192 107.435);
--primary-foreground: oklch(0.442 0.094 107.411);
--secondary: oklch(0.889 0.146 191.229);
--secondary-foreground: oklch(0.42 0.071 190.944);
--accent: oklch(0.692 0.296 326.64);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.589 0.24 29.054);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.937 0.192 107.435);
--chart-1: oklch(0.937 0.192 107.435);
--chart-2: oklch(0.889 0.146 191.229);
--chart-3: oklch(0.692 0.296 326.64);
--chart-4: oklch(0.893 0.142 191.46);
--chart-5: oklch(0.945 0.195 107.427);
}