Antique for shadcn/ui

Antique is a shadcn/ui theme built around a deep pink primary color (#461020) with deep blue accents (#102046). The light mode uses a neutral background (#fefbfc). Dark mode keeps the deep pink primary (#461020) on a pink-tinted background (#0b0506).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0b0506black
Foreground
#13060ablack
#ffffffwhite
Card
#fdf6f8snow
#0e0608black
Card foreground
#0f0508black
#ffffffwhite
Popover
#fdf6f8snow
#0e0608black
Popover foreground
#0f0508black
#ffffffwhite
Primary
#461020maroon
#461020maroon
Primary foreground
#e9a0b5lightpink
#e9a0b5lightpink
Secondary
#204610darkgreen
#204610darkgreen
Secondary foreground
#b5e9a0palegreen
#b5e9a0palegreen
Muted
#f1f4f0whitesmoke
#0c0f0bblack
Muted foreground
#566a4edarkolivegreen
#9db195darkseagreen
Accent
#102046midnightblue
#102046midnightblue
Accent foreground
#a0b5e9lightsteelblue
#a0b5e9lightsteelblue
Destructive
#8e230bsaddlebrown
#f06242tomato
Destructive foreground
#fbd8d0bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#461020maroon
#461020maroon

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card18.92:1AAA
Primary button7.47:1AAA
Secondary button7.75:1AAA
Muted text5.32:1AA
Accent7.81:1AAA
Destructive6.62:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.00:1AAA
Primary button7.47:1AAA
Secondary button7.75:1AAA
Muted text8.41:1AAA
Accent7.81:1AAA
Destructive6.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 357.826);
  --foreground: oklch(0.147 0.026 0.777);
  --muted: oklch(0.965 0.007 136.629);
  --muted-foreground: oklch(0.498 0.049 136.938);
  --popover: oklch(0.98 0.008 357.94);
  --popover-foreground: oklch(0.135 0.022 358.984);
  --card: oklch(0.98 0.008 357.94);
  --card-foreground: oklch(0.135 0.022 358.984);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.273 0.083 7.404);
  --primary-foreground: oklch(0.782 0.09 0.866);
  --secondary: oklch(0.354 0.093 138.241);
  --secondary-foreground: oklch(0.879 0.111 137.061);
  --accent: oklch(0.254 0.075 265.211);
  --accent-foreground: oklch(0.775 0.078 267.805);
  --destructive: oklch(0.428 0.145 33.55);
  --destructive-foreground: oklch(0.909 0.041 32.741);
  --ring: oklch(0.273 0.083 7.404);
  --chart-1: oklch(0.273 0.083 7.404);
  --chart-2: oklch(0.354 0.093 138.241);
  --chart-3: oklch(0.254 0.075 265.211);
  --chart-4: oklch(0.394 0.105 138.33);
  --chart-5: oklch(0.273 0.086 7.978);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.014 357.595);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.163 0.01 136.808);
  --muted-foreground: oklch(0.737 0.045 136.8);
  --popover: oklch(0.138 0.016 358.708);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.016 358.708);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.273 0.083 7.404);
  --primary-foreground: oklch(0.782 0.09 0.866);
  --secondary: oklch(0.354 0.093 138.241);
  --secondary-foreground: oklch(0.879 0.111 137.061);
  --accent: oklch(0.254 0.075 265.211);
  --accent-foreground: oklch(0.775 0.078 267.805);
  --destructive: oklch(0.671 0.181 34.149);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.273 0.083 7.404);
  --chart-1: oklch(0.273 0.083 7.404);
  --chart-2: oklch(0.354 0.093 138.241);
  --chart-3: oklch(0.254 0.075 265.211);
  --chart-4: oklch(0.394 0.105 138.33);
  --chart-5: oklch(0.273 0.086 7.978);
}