Antique for shadcn/ui

Antique is a shadcn/ui theme built around a near-black primary color (#030303) with near-black accents (#030303). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the near-black primary (#030303) on a red-tinted background (#0a0505).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0a0505black
Foreground
#040101black
#f9f5f5whitesmoke
Card
#fbf8f8snow
#0d0707black
Card foreground
#000000black
#fbf8f8snow
Popover
#fbf8f8snow
#0d0707black
Popover foreground
#000000black
#fbf8f8snow
Primary
#030303black
#030303black
Primary foreground
#9c9c9cdarkgray
#9c9c9cdarkgray
Secondary
#030303black
#030303black
Secondary foreground
#9c9c9cdarkgray
#9c9c9cdarkgray
Muted
#e8d9d9gainsboro
#261717black
Muted foreground
#564d4ddarkslategray
#b2a9a9darkgray
Accent
#030303black
#030303black
Accent foreground
#9c9c9cdarkgray
#9c9c9cdarkgray
Destructive
#d32903firebrick
#e72d04orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030303black
#030303black

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card19.94:1AAA
Primary button7.53:1AAA
Secondary button7.53:1AAA
Muted text5.97:1AA
Accent7.53:1AAA
Destructive5.13:1AA
Dark mode
Text on background18.69:1AAA
Text on card18.91:1AAA
Primary button7.53:1AAA
Secondary button7.53:1AAA
Muted text7.50:1AAA
Accent7.53:1AAA
Destructive4.39: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.991 0.002 17.186);
  --foreground: oklch(0.079 0.02 22.633);
  --muted: oklch(0.897 0.017 17.473);
  --muted-foreground: oklch(0.429 0.013 17.674);
  --popover: oklch(0.983 0.003 17.215);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.003 17.215);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.092 0 180);
  --primary-foreground: oklch(0.691 0 180);
  --secondary: oklch(0.092 0 180);
  --secondary-foreground: oklch(0.691 0 180);
  --accent: oklch(0.092 0 180);
  --accent-foreground: oklch(0.691 0 180);
  --destructive: oklch(0.561 0.208 32.49);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.092 0 180);
  --chart-1: oklch(0.092 0 180);
  --chart-2: oklch(0.092 0 180);
  --chart-3: oklch(0.092 0 180);
  --chart-4: oklch(0.146 0 180);
  --chart-5: oklch(0.091 0.001 17.277);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.011 18.726);
  --foreground: oklch(0.974 0.005 17.236);
  --muted: oklch(0.225 0.025 19.208);
  --muted-foreground: oklch(0.741 0.011 17.412);
  --popover: oklch(0.138 0.013 18.797);
  --popover-foreground: oklch(0.983 0.003 17.209);
  --card: oklch(0.138 0.013 18.797);
  --card-foreground: oklch(0.983 0.003 17.209);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.092 0 180);
  --primary-foreground: oklch(0.691 0 180);
  --secondary: oklch(0.092 0 180);
  --secondary-foreground: oklch(0.691 0 180);
  --accent: oklch(0.092 0 180);
  --accent-foreground: oklch(0.691 0 180);
  --destructive: oklch(0.6 0.223 32.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.092 0 180);
  --chart-1: oklch(0.092 0 180);
  --chart-2: oklch(0.092 0 180);
  --chart-3: oklch(0.092 0 180);
  --chart-4: oklch(0.146 0 180);
  --chart-5: oklch(0.091 0.001 17.277);
}