Bubbly is a shadcn/ui theme built around a pink primary color (#c8327a) with teal accents (#32c87f). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the pink primary (#c8327a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fasnow | #000000black |
| Foreground | #10050ablack | #fbf9fasnow |
| Card | #faf4f7whitesmoke | #030303black |
| Card foreground | #0c0308black | #fdfcfcsnow |
| Popover | #faf4f7whitesmoke | #030303black |
| Popover foreground | #0c0308black | #fdfcfcsnow |
| Primary | #c8327amediumvioletred | #c8327amediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #32c87fmediumseagreen | #32c87fmediumseagreen |
| Secondary foreground | #092517black | #092517black |
| Muted | #edf7f2whitesmoke | #08120dblack |
| Muted foreground | #3b4f45darkslategray | #b0c4basilver |
| Accent | #32c87fmediumseagreen | #32c87fmediumseagreen |
| Accent foreground | #092517black | #092517black |
| Destructive | #73320csaddlebrown | #e9732fchocolate |
| Destructive foreground | #f8d0bapeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c8327amediumvioletred | #c8327amediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.00:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 5.00:1 | AA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 7.52:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 5.00:1 | AA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 10.39:1 | AAA |
| Accent | 7.52:1 | AAA |
| Destructive | 6.98:1 | AA |
Paste this into your globals.css to use Bubbly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 346.157);
--foreground: oklch(0.135 0.026 347.834);
--muted: oklch(0.968 0.013 165.666);
--muted-foreground: oklch(0.408 0.031 163.817);
--popover: oklch(0.973 0.008 346.229);
--popover-foreground: oklch(0.122 0.023 346.066);
--card: oklch(0.973 0.008 346.229);
--card-foreground: oklch(0.122 0.023 346.066);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.568 0.195 356.019);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.739 0.162 156.753);
--secondary-foreground: oklch(0.238 0.042 159.505);
--accent: oklch(0.739 0.162 156.753);
--accent-foreground: oklch(0.238 0.042 159.505);
--destructive: oklch(0.401 0.104 45.934);
--destructive-foreground: oklch(0.887 0.054 51.806);
--ring: oklch(0.568 0.195 356.019);
--chart-1: oklch(0.568 0.195 356.019);
--chart-2: oklch(0.739 0.162 156.753);
--chart-3: oklch(0.739 0.162 156.753);
--chart-4: oklch(0.758 0.16 157.367);
--chart-5: oklch(0.571 0.202 356.581);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 346.092);
--muted: oklch(0.169 0.019 163.028);
--muted-foreground: oklch(0.803 0.026 165.107);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.992 0.001 346.055);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.001 346.055);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.568 0.195 356.019);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.739 0.162 156.753);
--secondary-foreground: oklch(0.238 0.042 159.505);
--accent: oklch(0.739 0.162 156.753);
--accent-foreground: oklch(0.238 0.042 159.505);
--destructive: oklch(0.684 0.165 47.055);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.568 0.195 356.019);
--chart-1: oklch(0.568 0.195 356.019);
--chart-2: oklch(0.739 0.162 156.753);
--chart-3: oklch(0.739 0.162 156.753);
--chart-4: oklch(0.758 0.16 157.367);
--chart-5: oklch(0.571 0.202 356.581);
}