Bubble for shadcn/ui

Bubble is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0b0404).

Color palette

TokenLightDark
Background
#fdf7f7snow
#0b0404black
Foreground
#160404black
#fbf9f9snow
Card
#fcf3f3lavenderblush
#0f0505black
Card foreground
#120303black
#fdfcfcsnow
Popover
#fcf3f3lavenderblush
#0f0505black
Popover foreground
#120303black
#fdfcfcsnow
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#ffffffwhite
#ffffffwhite
Secondary foreground
#333333darkslategray
#333333darkslategray
Muted
#e5d2d2gainsboro
#2d1a1ablack
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#ffffffwhite
#ffffffwhite
Accent foreground
#333333darkslategray
#333333darkslategray
Destructive
#c61815firebrick
#e71c18crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background18.79:1AAA
Text on card18.46:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text5.82:1AA
Accent12.63:1AAA
Destructive5.90:1AA
Dark mode
Text on background19.36:1AAA
Text on card19.60:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text7.83:1AAA
Accent12.63:1AAA
Destructive4.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.272);
  --foreground: oklch(0.141 0.037 23.114);
  --muted: oklch(0.879 0.021 17.553);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.97 0.01 17.332);
  --popover-foreground: oklch(0.128 0.033 22.808);
  --card: oklch(0.97 0.01 17.332);
  --card-foreground: oklch(0.128 0.033 22.808);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.528 0.205 28.527);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.017 19.8);
  --foreground: oklch(0.983 0.003 17.207);
  --muted: oklch(0.244 0.03 19.436);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.134 0.019 19.941);
  --popover-foreground: oklch(0.991 0.001 17.183);
  --card: oklch(0.134 0.019 19.941);
  --card-foreground: oklch(0.991 0.001 17.183);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.591 0.231 28.613);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}