Bubbly is a shadcn/ui theme built around a muted pink primary color (#b4a2ad) with muted light pink accents (#efe7ec). The light mode uses a neutral background (#fefbfd). Dark mode keeps the muted pink primary (#b4a2ad) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #000000black |
| Foreground | #16040fblack | #fdfcfdwhite |
| Card | #fcf8fbsnow | #030303black |
| Card foreground | #12030cblack | #ffffffwhite |
| Popover | #fcf8fbsnow | #030303black |
| Popover foreground | #12030cblack | #ffffffwhite |
| Primary | #b4a2addarkgray | #b4a2addarkgray |
| Primary foreground | #141012black | #141012black |
| Secondary | #efe7eclinen | #191518black |
| Secondary foreground | #624156dimgray | #b8a8b2darkgray |
| Muted | #f3f1f3whitesmoke | #0e0c0dblack |
| Muted foreground | #494648darkslategray | #b9b6b8silver |
| Accent | #efe7eclinen | #191518black |
| Accent foreground | #624156dimgray | #b8a8b2darkgray |
| Destructive | #da2a0bfirebrick | #f33c1borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b4a2addarkgray | #b4a2addarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 8.30:1 | AAA |
| Accent | 7.15:1 | AAA |
| Destructive | 4.85:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 9.71:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Bubbly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 338.788);
--foreground: oklch(0.147 0.043 342.726);
--muted: oklch(0.961 0.003 338.781);
--muted-foreground: oklch(0.397 0.005 338.979);
--popover: oklch(0.982 0.006 338.857);
--popover-foreground: oklch(0.134 0.038 341.467);
--card: oklch(0.982 0.006 338.857);
--card-foreground: oklch(0.134 0.038 341.467);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.73 0.027 339.493);
--primary-foreground: oklch(0.178 0.008 339.671);
--secondary: oklch(0.934 0.011 338.974);
--secondary-foreground: oklch(0.421 0.055 341.322);
--accent: oklch(0.934 0.011 338.974);
--accent-foreground: oklch(0.421 0.055 341.322);
--destructive: oklch(0.575 0.213 31.778);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.73 0.027 339.493);
--chart-1: oklch(0.73 0.027 339.493);
--chart-2: oklch(0.934 0.011 338.974);
--chart-3: oklch(0.934 0.011 338.974);
--chart-4: oklch(0.959 0.007 338.874);
--chart-5: oklch(0.728 0.034 339.703);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 338.736);
--muted: oklch(0.156 0.004 339.309);
--muted-foreground: oklch(0.78 0.004 338.832);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.73 0.027 339.493);
--primary-foreground: oklch(0.178 0.008 339.671);
--secondary: oklch(0.201 0.009 339.678);
--secondary-foreground: oklch(0.748 0.023 339.363);
--accent: oklch(0.201 0.009 339.678);
--accent-foreground: oklch(0.748 0.023 339.363);
--destructive: oklch(0.633 0.223 32.18);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.73 0.027 339.493);
--chart-1: oklch(0.73 0.027 339.493);
--chart-2: oklch(0.201 0.009 339.678);
--chart-3: oklch(0.201 0.009 339.678);
--chart-4: oklch(0.233 0.012 339.777);
--chart-5: oklch(0.728 0.034 339.703);
}