Antique for shadcn/ui

Antique is a shadcn/ui theme built around a muted purple primary color (#baaebc) with muted light purple accents (#e2d8e3). The light mode uses a neutral background (#fcf7fc). Dark mode keeps the muted purple primary (#baaebc) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#fcf7fcsnow
#0a050ablack
Foreground
#110613black
#f9f6f9whitesmoke
Card
#faf4fbghostwhite
#0d070eblack
Card foreground
#0e050fblack
#fbf9fbsnow
Popover
#faf4fbghostwhite
#0d070eblack
Popover foreground
#0e050fblack
#fbf9fbsnow
Primary
#baaebcsilver
#baaebcsilver
Primary foreground
#1e191fblack
#1e191fblack
Secondary
#e2d8e3gainsboro
#201c21black
Secondary foreground
#4d3951darkslategray
#bbb3bdsilver
Muted
#e0dbe1gainsboro
#231e24black
Muted foreground
#5a585adimgray
#a6a5a7darkgray
Accent
#e2d8e3gainsboro
#201c21black
Accent foreground
#4d3951darkslategray
#bbb3bdsilver
Destructive
#cf1717firebrick
#e93535crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#baaebcsilver
#baaebcsilver

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.48:1AAA
Primary button8.11:1AAA
Secondary button7.52:1AAA
Muted text5.16:1AA
Accent7.52:1AAA
Destructive5.56:1AA
Dark mode
Text on background18.85:1AAA
Text on card19.05:1AAA
Primary button8.11:1AAA
Secondary button8.20:1AAA
Muted text6.65:1AA
Accent8.20:1AAA
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 321.615);
  --foreground: oklch(0.15 0.033 322.278);
  --muted: oklch(0.897 0.01 321.623);
  --muted-foreground: oklch(0.464 0.003 321.613);
  --popover: oklch(0.973 0.012 321.627);
  --popover-foreground: oklch(0.137 0.029 322.522);
  --card: oklch(0.973 0.012 321.627);
  --card-foreground: oklch(0.137 0.029 322.522);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.765 0.025 321.683);
  --primary-foreground: oklch(0.223 0.013 321.752);
  --secondary: oklch(0.894 0.018 321.65);
  --secondary-foreground: oklch(0.377 0.047 321.915);
  --accent: oklch(0.894 0.018 321.65);
  --accent-foreground: oklch(0.377 0.047 321.915);
  --destructive: oklch(0.543 0.212 28.19);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.765 0.025 321.683);
  --chart-1: oklch(0.765 0.025 321.683);
  --chart-2: oklch(0.894 0.018 321.65);
  --chart-3: oklch(0.894 0.018 321.65);
  --chart-4: oklch(0.919 0.014 321.635);
  --chart-5: oklch(0.763 0.033 321.711);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.017 322.701);
  --foreground: oklch(0.975 0.006 321.608);
  --muted: oklch(0.244 0.014 321.744);
  --muted-foreground: oklch(0.723 0.003 321.604);
  --popover: oklch(0.14 0.02 322.209);
  --popover-foreground: oklch(0.984 0.004 321.603);
  --card: oklch(0.14 0.02 322.209);
  --card-foreground: oklch(0.984 0.004 321.603);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.765 0.025 321.683);
  --primary-foreground: oklch(0.223 0.013 321.752);
  --secondary: oklch(0.234 0.01 321.708);
  --secondary-foreground: oklch(0.776 0.017 321.653);
  --accent: oklch(0.234 0.01 321.708);
  --accent-foreground: oklch(0.776 0.017 321.653);
  --destructive: oklch(0.611 0.215 26.39);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.765 0.025 321.683);
  --chart-1: oklch(0.765 0.025 321.683);
  --chart-2: oklch(0.234 0.01 321.708);
  --chart-3: oklch(0.234 0.01 321.708);
  --chart-4: oklch(0.266 0.012 321.715);
  --chart-5: oklch(0.763 0.033 321.711);
}