Tattered for shadcn/ui

Tattered is a shadcn/ui theme built around a pink primary color (#a93755) with blue accents (#3755a9). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#a93755) on a pink-tinted background (#100408).

Color palette

TokenLightDark
Background
#ffffffwhite
#100408black
Foreground
#080204black
#fbf9f9snow
Card
#fcfcfcsnow
#140609black
Card foreground
#040102black
#fdfcfcsnow
Popover
#fcfcfcsnow
#140609black
Popover foreground
#040102black
#fdfcfcsnow
Primary
#a93755brown
#a93755brown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#55a937olivedrab
#55a937olivedrab
Secondary foreground
#080f05black
#080f05black
Muted
#e6ece4beige
#151b13black
Muted foreground
#5b6e53dimgray
#98ac91darkseagreen
Accent
#3755a9darkslateblue
#3755a9darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d02401firebrick
#fe4925orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a93755brown
#a93755brown

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.33:1AAA
Primary button6.22:1AA
Secondary button6.61:1AA
Muted text4.61:1AA
Accent6.87:1AA
Destructive5.34:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.38:1AAA
Primary button6.22:1AA
Secondary button6.61:1AA
Muted text7.20:1AAA
Accent6.87:1AA
Destructive3.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.104 0.021 358.604);
  --muted: oklch(0.937 0.013 137.223);
  --muted-foreground: oklch(0.516 0.048 137.436);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.083 0.016 358.604);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.083 0.016 358.604);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.511 0.151 8.106);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.66 0.171 138.54);
  --secondary-foreground: oklch(0.158 0.026 136.286);
  --accent: oklch(0.474 0.139 266.178);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.552 0.209 31.927);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.511 0.151 8.106);
  --chart-1: oklch(0.511 0.151 8.106);
  --chart-2: oklch(0.66 0.171 138.54);
  --chart-3: oklch(0.474 0.139 266.178);
  --chart-4: oklch(0.692 0.18 138.555);
  --chart-5: oklch(0.512 0.158 8.78);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.025 0.181);
  --foreground: oklch(0.983 0.003 358.87);
  --muted: oklch(0.214 0.019 137.426);
  --muted-foreground: oklch(0.72 0.044 137.343);
  --popover: oklch(0.146 0.028 1.919);
  --popover-foreground: oklch(0.992 0.001 358.826);
  --card: oklch(0.146 0.028 1.919);
  --card-foreground: oklch(0.992 0.001 358.826);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.511 0.151 8.106);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.66 0.171 138.54);
  --secondary-foreground: oklch(0.158 0.026 136.286);
  --accent: oklch(0.474 0.139 266.178);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.663 0.222 33.016);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.511 0.151 8.106);
  --chart-1: oklch(0.511 0.151 8.106);
  --chart-2: oklch(0.66 0.171 138.54);
  --chart-3: oklch(0.474 0.139 266.178);
  --chart-4: oklch(0.692 0.18 138.555);
  --chart-5: oklch(0.512 0.158 8.78);
}