Bubbly is a shadcn/ui theme built around a vivid light green primary color (#c1fad2) with muted light green accents (#c9d4cc). The light mode uses a neutral background (#f7fcf9). Dark mode keeps the vivid light green primary (#c1fad2) on a green-tinted background (#050a07).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcf9mintcream | #050a07black |
| Foreground | #041008black | #f7f8f7whitesmoke |
| Card | #f4fbf6mintcream | #060e09black |
| Card foreground | #030c06black | #f9fafaghostwhite |
| Popover | #f7fcf9mintcream | #050a07black |
| Popover foreground | #041008black | #f7f8f7whitesmoke |
| Primary | #c1fad2paleturquoise | #c1fad2paleturquoise |
| Primary foreground | #02210cblack | #02210cblack |
| Secondary | #dce0ddgainsboro | #272b28darkslategray |
| Secondary foreground | #414843darkslategray | #bfc5c1silver |
| Muted | #e5f0e8honeydew | #0f1a12black |
| Muted foreground | #48604fdarkslategray | #9fb7a6darkgray |
| Accent | #c9d4cclightgrey | #36443bdarkslategray |
| Accent foreground | #2f3c33darkslategray | #d2dbd4lightgrey |
| Destructive | #c54307chocolate | #f76522chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c1fad2paleturquoise | #c1fad2paleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.75:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 14.63:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 7.60:1 | AAA |
| Destructive | 5.02:1 | AA |
| Text on background | 18.70:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 14.63:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 8.33:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 6.84:1 | AA |
Paste this into your globals.css to use Bubbly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 155.734);
--foreground: oklch(0.158 0.026 154.216);
--muted: oklch(0.945 0.016 155.553);
--muted-foreground: oklch(0.464 0.039 154.152);
--popover: oklch(0.988 0.007 155.734);
--popover-foreground: oklch(0.158 0.026 154.216);
--card: oklch(0.981 0.01 155.664);
--card-foreground: oklch(0.141 0.022 155.196);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.937 0.079 154.14);
--primary-foreground: oklch(0.219 0.055 150.33);
--secondary: oklch(0.902 0.005 155.768);
--secondary-foreground: oklch(0.395 0.012 155.276);
--accent: oklch(0.86 0.017 155.493);
--accent-foreground: oklch(0.341 0.023 154.509);
--destructive: oklch(0.561 0.175 39.283);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.937 0.079 154.14);
--chart-1: oklch(0.937 0.079 154.14);
--chart-2: oklch(0.902 0.005 155.768);
--chart-3: oklch(0.86 0.017 155.493);
--chart-4: oklch(0.925 0.004 155.794);
--chart-5: oklch(0.938 0.082 154.079);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.015 155.544);
--foreground: oklch(0.978 0.002 155.827);
--muted: oklch(0.204 0.022 153.58);
--muted-foreground: oklch(0.756 0.035 154.959);
--popover: oklch(0.138 0.015 155.544);
--popover-foreground: oklch(0.978 0.002 155.827);
--card: oklch(0.153 0.017 154.793);
--card-foreground: oklch(0.985 0.001 155.841);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.937 0.079 154.14);
--primary-foreground: oklch(0.219 0.055 150.33);
--secondary: oklch(0.283 0.008 155.338);
--secondary-foreground: oklch(0.817 0.009 155.659);
--accent: oklch(0.371 0.024 154.589);
--accent-foreground: oklch(0.882 0.013 155.589);
--destructive: oklch(0.684 0.194 41.513);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.937 0.079 154.14);
--chart-1: oklch(0.937 0.079 154.14);
--chart-2: oklch(0.283 0.008 155.338);
--chart-3: oklch(0.371 0.024 154.589);
--chart-4: oklch(0.315 0.009 155.316);
--chart-5: oklch(0.938 0.082 154.079);
}