Dull for shadcn/ui

Dull is a shadcn/ui theme built around a pink primary color (#cb4d82) with red accents (#cb584d). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the pink primary (#cb4d82) on a pink-tinted background (#0b0507).

Color palette

TokenLightDark
Background
#fcf8fasnow
#0b0507black
Foreground
#0d0207black
#f8f7f7whitesmoke
Card
#fbf4f7lavenderblush
#0e060ablack
Card foreground
#090104black
#faf9fasnow
Popover
#fbf4f7lavenderblush
#0e060ablack
Popover foreground
#090104black
#faf9fasnow
Primary
#cb4d82indianred
#cb4d82indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cb4dc1mediumorchid
#cb4dc1mediumorchid
Secondary foreground
#000000black
#000000black
Muted
#e0d1dfgainsboro
#2e1f2cdarkslategray
Muted foreground
#4a4549darkslategray
#bab5b9silver
Accent
#cb584dindianred
#cb584dindianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b81e0afirebrick
#ed270corangered
Destructive foreground
#fef6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cb4d82indianred
#cb4d82indianred

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.02:1AAA
Primary button4.25:1AA Large
Secondary button5.38:1AA
Muted text6.43:1AA
Accent4.16:1AA Large
Destructive6.10:1AA
Dark mode
Text on background18.93:1AAA
Text on card19.04:1AAA
Primary button4.25:1AA Large
Secondary button5.38:1AA
Muted text7.72:1AAA
Accent4.16:1AA Large
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 349.827);
  --foreground: oklch(0.117 0.033 349.812);
  --muted: oklch(0.878 0.024 328.345);
  --muted-foreground: oklch(0.397 0.009 328.288);
  --popover: oklch(0.973 0.008 349.908);
  --popover-foreground: oklch(0.102 0.028 349.144);
  --card: oklch(0.973 0.008 349.908);
  --card-foreground: oklch(0.102 0.028 349.144);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.604 0.168 357.492);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.63 0.207 331.151);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.604 0.15 27.596);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.504 0.19 30.895);
  --destructive-foreground: oklch(0.98 0.009 26.501);
  --ring: oklch(0.604 0.168 357.492);
  --chart-1: oklch(0.604 0.168 357.492);
  --chart-2: oklch(0.63 0.207 331.151);
  --chart-3: oklch(0.604 0.15 27.596);
  --chart-4: oklch(0.65 0.195 330.886);
  --chart-5: oklch(0.605 0.175 357.968);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.015 349.471);
  --foreground: oklch(0.976 0.002 349.728);
  --muted: oklch(0.263 0.032 329.27);
  --muted-foreground: oklch(0.779 0.007 328.161);
  --popover: oklch(0.138 0.018 350.882);
  --popover-foreground: oklch(0.984 0.001 349.709);
  --card: oklch(0.138 0.018 350.882);
  --card-foreground: oklch(0.984 0.001 349.709);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.604 0.168 357.492);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.63 0.207 331.151);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.604 0.15 27.596);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.608 0.232 30.815);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.604 0.168 357.492);
  --chart-1: oklch(0.604 0.168 357.492);
  --chart-2: oklch(0.63 0.207 331.151);
  --chart-3: oklch(0.604 0.15 27.596);
  --chart-4: oklch(0.65 0.195 330.886);
  --chart-5: oklch(0.605 0.175 357.968);
}