Bubbly for shadcn/ui

Bubbly is a shadcn/ui theme built around a pink primary color (#884969) with red accents (#884949). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#884969) on a pink-tinted background (#0b0408).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0408black
Foreground
#0c0408black
#f9f5f7whitesmoke
Card
#fcfcfcsnow
#0f050ablack
Card foreground
#080205black
#fbf9fasnow
Popover
#ffffffwhite
#0b0408black
Popover foreground
#0c0408black
#f9f5f7whitesmoke
Primary
#884969dimgray
#884969dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#884988rebeccapurple
#884988rebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efdceflavender
#231023black
Muted foreground
#635f63dimgray
#a09ca0darkgray
Accent
#884949sienna
#884949sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#aa3409firebrick
#f4632ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#884969dimgray
#884969dimgray

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.12:1AAA
Primary button6.55:1AA
Secondary button6.25:1AA
Muted text4.81:1AA
Accent6.77:1AA
Destructive6.58:1AA
Dark mode
Text on background18.77:1AAA
Text on card19.12:1AAA
Primary button6.55:1AA
Secondary button6.25:1AA
Muted text6.63:1AA
Accent6.77:1AA
Destructive6.68:1AA

CSS variables

Paste this into your globals.css to use Bubbly in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.023 345.224);
  --muted: oklch(0.915 0.034 325.852);
  --muted-foreground: oklch(0.49 0.008 325.695);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.023 345.224);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.107 0.02 344.963);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.492 0.094 349.777);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.505 0.12 327.171);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.482 0.085 20.707);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.496 0.161 36.991);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.492 0.094 349.777);
  --chart-1: oklch(0.492 0.094 349.777);
  --chart-2: oklch(0.505 0.12 327.171);
  --chart-3: oklch(0.482 0.085 20.707);
  --chart-4: oklch(0.531 0.127 327.181);
  --chart-5: oklch(0.491 0.103 350.25);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.02 345.156);
  --foreground: oklch(0.975 0.005 345.277);
  --muted: oklch(0.21 0.048 327.108);
  --muted-foreground: oklch(0.698 0.007 325.653);
  --popover: oklch(0.123 0.02 345.156);
  --popover-foreground: oklch(0.975 0.005 345.277);
  --card: oklch(0.137 0.023 346.854);
  --card-foreground: oklch(0.983 0.003 345.232);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.492 0.094 349.777);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.505 0.12 327.171);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.482 0.085 20.707);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.678 0.189 39.004);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.492 0.094 349.777);
  --chart-1: oklch(0.492 0.094 349.777);
  --chart-2: oklch(0.505 0.12 327.171);
  --chart-3: oklch(0.482 0.085 20.707);
  --chart-4: oklch(0.531 0.127 327.181);
  --chart-5: oklch(0.491 0.103 350.25);
}