Bubbly is a shadcn/ui theme built around a blue primary color (#23557b) with orange accents (#7b4923). The light mode uses a neutral background (#f8fafb). Dark mode keeps the blue primary (#23557b) on a blue-tinted background (#03080c).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafbghostwhite | #03080cblack |
| Foreground | #030e16black | #fcfdfdwhite |
| Card | #f8fafbghostwhite | #03080cblack |
| Card foreground | #030e16black | #fcfdfdwhite |
| Popover | #f8fafbghostwhite | #03080cblack |
| Popover foreground | #030e16black | #fcfdfdwhite |
| Primary | #23557bdarkslategray | #23557bdarkslategray |
| Primary foreground | #dbeaf5lavender | #dbeaf5lavender |
| Secondary | #7b4923saddlebrown | #7b4923saddlebrown |
| Secondary foreground | #f5e6dbantiquewhite | #f5e6dbantiquewhite |
| Muted | #dedbd9gainsboro | #262321black |
| Muted foreground | #564b43darkolivegreen | #bcb1a9darkgray |
| Accent | #7b4923saddlebrown | #7b4923saddlebrown |
| Accent foreground | #f5e6dbantiquewhite | #f5e6dbantiquewhite |
| Destructive | #9c0f02darkred | #fb2613orangered |
| Destructive foreground | #fed5d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #23557bdarkslategray | #23557bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.63:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 6.09:1 | AA |
| Muted text | 6.13:1 | AA |
| Accent | 6.09:1 | AA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 6.09:1 | AA |
| Muted text | 7.40:1 | AAA |
| Accent | 6.09:1 | AA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Bubbly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.003 240.32);
--foreground: oklch(0.157 0.026 238.951);
--muted: oklch(0.893 0.004 60.218);
--muted-foreground: oklch(0.422 0.019 59.65);
--popover: oklch(0.984 0.003 240.32);
--popover-foreground: oklch(0.157 0.026 238.951);
--card: oklch(0.984 0.003 240.32);
--card-foreground: oklch(0.157 0.026 238.951);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.434 0.083 244.633);
--primary-foreground: oklch(0.929 0.022 240.609);
--secondary: oklch(0.457 0.086 55.743);
--secondary-foreground: oklch(0.935 0.022 59.962);
--accent: oklch(0.457 0.086 55.743);
--accent-foreground: oklch(0.935 0.022 59.962);
--destructive: oklch(0.44 0.173 30.316);
--destructive-foreground: oklch(0.908 0.046 24.149);
--ring: oklch(0.434 0.083 244.633);
--chart-1: oklch(0.434 0.083 244.633);
--chart-2: oklch(0.457 0.086 55.743);
--chart-3: oklch(0.457 0.086 55.743);
--chart-4: oklch(0.487 0.093 55.638);
--chart-5: oklch(0.435 0.087 244.987);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.014 233.586);
--foreground: oklch(0.992 0.001 240.299);
--muted: oklch(0.26 0.006 59.974);
--muted-foreground: oklch(0.768 0.016 59.99);
--popover: oklch(0.131 0.014 233.586);
--popover-foreground: oklch(0.992 0.001 240.299);
--card: oklch(0.131 0.014 233.586);
--card-foreground: oklch(0.992 0.001 240.299);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.434 0.083 244.633);
--primary-foreground: oklch(0.929 0.022 240.609);
--secondary: oklch(0.457 0.086 55.743);
--secondary-foreground: oklch(0.935 0.022 59.962);
--accent: oklch(0.457 0.086 55.743);
--accent-foreground: oklch(0.935 0.022 59.962);
--destructive: oklch(0.633 0.244 30.092);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.434 0.083 244.633);
--chart-1: oklch(0.434 0.083 244.633);
--chart-2: oklch(0.457 0.086 55.743);
--chart-3: oklch(0.457 0.086 55.743);
--chart-4: oklch(0.487 0.093 55.638);
--chart-5: oklch(0.435 0.087 244.987);
}