Attic for shadcn/ui

Attic is a shadcn/ui theme built around a deep pink primary color (#220b16) with muted light pink accents (#d7c6ce). The light mode uses a neutral background (#fcf7fa). Dark mode keeps the deep pink primary (#220b16) on a pink-tinted background (#0e060a).

Color palette

TokenLightDark
Background
#fcf7fasnow
#0e060ablack
Foreground
#11040ablack
#fdfcfcsnow
Card
#fcf7fasnow
#0e060ablack
Card foreground
#11040ablack
#fdfcfcsnow
Popover
#fcf7fasnow
#0e060ablack
Popover foreground
#11040ablack
#fdfcfcsnow
Primary
#220b16black
#220b16black
Primary foreground
#d788acpalevioletred
#d788acpalevioletred
Secondary
#e3dee0gainsboro
#151314black
Secondary foreground
#4c4247darkslategray
#b1a9addarkgray
Muted
#e8dee2gainsboro
#21171cblack
Muted foreground
#61565bdimgray
#a99ea3darkgray
Accent
#d7c6cethistle
#2a2226darkslategray
Accent foreground
#3f2c35darkslategray
#c6b8bfsilver
Destructive
#7c2a03saddlebrown
#fa6f2etomato
Destructive foreground
#fdcbb4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#220b16black
#220b16black

Contrast

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

Light mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button7.07:1AAA
Secondary button7.25:1AAA
Muted text5.34:1AA
Accent7.93:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button7.07:1AAA
Secondary button8.03:1AAA
Muted text6.72:1AA
Accent8.11:1AAA
Destructive7.34:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 347.982);
  --foreground: oklch(0.133 0.031 349.75);
  --muted: oklch(0.91 0.012 348.166);
  --muted-foreground: oklch(0.467 0.016 348.743);
  --popover: oklch(0.982 0.006 347.982);
  --popover-foreground: oklch(0.133 0.031 349.75);
  --card: oklch(0.982 0.006 347.982);
  --card-foreground: oklch(0.133 0.031 349.75);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.193 0.042 353.489);
  --primary-foreground: oklch(0.72 0.106 351.568);
  --secondary: oklch(0.905 0.005 347.973);
  --secondary-foreground: oklch(0.392 0.015 348.859);
  --accent: oklch(0.843 0.021 348.48);
  --accent-foreground: oklch(0.319 0.03 350.231);
  --destructive: oklch(0.403 0.123 40.324);
  --destructive-foreground: oklch(0.881 0.065 46.163);
  --ring: oklch(0.193 0.042 353.489);
  --chart-1: oklch(0.193 0.042 353.489);
  --chart-2: oklch(0.905 0.005 347.973);
  --chart-3: oklch(0.843 0.021 348.48);
  --chart-4: oklch(0.929 0.004 347.929);
  --chart-5: oklch(0.193 0.044 353.848);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.018 349.109);
  --foreground: oklch(0.992 0.002 347.855);
  --muted: oklch(0.22 0.017 349.844);
  --muted-foreground: oklch(0.709 0.015 348.368);
  --popover: oklch(0.138 0.018 349.109);
  --popover-foreground: oklch(0.992 0.002 347.855);
  --card: oklch(0.138 0.018 349.109);
  --card-foreground: oklch(0.992 0.002 347.855);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.193 0.042 353.489);
  --primary-foreground: oklch(0.72 0.106 351.568);
  --secondary: oklch(0.191 0.004 348.342);
  --secondary-foreground: oklch(0.744 0.011 348.201);
  --accent: oklch(0.263 0.014 349.253);
  --accent-foreground: oklch(0.797 0.018 348.423);
  --destructive: oklch(0.701 0.186 42.5);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.193 0.042 353.489);
  --chart-1: oklch(0.193 0.042 353.489);
  --chart-2: oklch(0.191 0.004 348.342);
  --chart-3: oklch(0.263 0.014 349.253);
  --chart-4: oklch(0.224 0.005 348.408);
  --chart-5: oklch(0.193 0.044 353.848);
}