Celebration for shadcn/ui

Celebration is a shadcn/ui theme built around a deep orange primary color (#552616) with deep cyan accents (#164555). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the deep orange primary (#552616) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fdf8f7snow
#040201black
Foreground
#0d0502black
#fbfaf9snow
Card
#fdf8f7snow
#040201black
Card foreground
#0d0502black
#fbfaf9snow
Popover
#fdf8f7snow
#040201black
Popover foreground
#0d0502black
#fbfaf9snow
Primary
#552616maroon
#552616maroon
Primary foreground
#ebc0b2lightpink
#ebc0b2lightpink
Secondary
#164555darkslategray
#164555darkslategray
Secondary foreground
#b2ddebpowderblue
#b2ddebpowderblue
Muted
#d4e3e8gainsboro
#17262bdarkslategray
Muted foreground
#5a6468dimgray
#97a1a5darkgray
Accent
#164555darkslategray
#164555darkslategray
Accent foreground
#b2ddebpowderblue
#b2ddebpowderblue
Destructive
#d03c06orangered
#f84f12orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#552616maroon
#552616maroon

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button7.59:1AAA
Secondary button7.12:1AAA
Muted text4.61:1AA
Accent7.12:1AAA
Destructive4.85:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button7.59:1AAA
Secondary button7.12:1AAA
Muted text5.88:1AA
Accent7.12:1AAA
Destructive3.44:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 39.474);
  --foreground: oklch(0.127 0.02 48.899);
  --muted: oklch(0.906 0.018 219.669);
  --muted-foreground: oklch(0.497 0.014 219.747);
  --popover: oklch(0.983 0.005 39.474);
  --popover-foreground: oklch(0.127 0.02 48.899);
  --card: oklch(0.983 0.005 39.474);
  --card-foreground: oklch(0.127 0.02 48.899);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.331 0.075 38.86);
  --primary-foreground: oklch(0.842 0.053 39.257);
  --secondary: oklch(0.367 0.057 223.826);
  --secondary-foreground: oklch(0.871 0.049 220.126);
  --accent: oklch(0.367 0.057 223.826);
  --accent-foreground: oklch(0.871 0.049 220.126);
  --destructive: oklch(0.571 0.192 36.206);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.331 0.075 38.86);
  --chart-1: oklch(0.331 0.075 38.86);
  --chart-2: oklch(0.367 0.057 223.826);
  --chart-3: oklch(0.367 0.057 223.826);
  --chart-4: oklch(0.402 0.063 224.015);
  --chart-5: oklch(0.332 0.079 38.76);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.008 45.153);
  --foreground: oklch(0.984 0.001 39.499);
  --muted: oklch(0.258 0.023 220.801);
  --muted-foreground: oklch(0.704 0.013 219.652);
  --popover: oklch(0.089 0.008 45.153);
  --popover-foreground: oklch(0.984 0.001 39.499);
  --card: oklch(0.089 0.008 45.153);
  --card-foreground: oklch(0.984 0.001 39.499);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.331 0.075 38.86);
  --primary-foreground: oklch(0.842 0.053 39.257);
  --secondary: oklch(0.367 0.057 223.826);
  --secondary-foreground: oklch(0.871 0.049 220.126);
  --accent: oklch(0.367 0.057 223.826);
  --accent-foreground: oklch(0.871 0.049 220.126);
  --destructive: oklch(0.658 0.214 36.884);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.331 0.075 38.86);
  --chart-1: oklch(0.331 0.075 38.86);
  --chart-2: oklch(0.367 0.057 223.826);
  --chart-3: oklch(0.367 0.057 223.826);
  --chart-4: oklch(0.402 0.063 224.015);
  --chart-5: oklch(0.332 0.079 38.76);
}