Bubbly for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.00:1AAA
Text on card18.79:1AAA
Primary button5.00:1AA
Secondary button7.52:1AAA
Muted text8.04:1AAA
Accent7.52:1AAA
Destructive6.70:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.19:1AAA
Primary button5.00:1AA
Secondary button7.52:1AAA
Muted text10.39:1AAA
Accent7.52:1AAA
Destructive6.98:1AA

CSS variables

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);
}