Antecedent for shadcn/ui

Antecedent is a shadcn/ui theme built around a red primary color (#c45d54) with cyan accents (#54bbc4). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the red primary (#c45d54) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fdfcfbsnow
#070303black
Foreground
#0c0403black
#fcf8f8snow
Card
#fcf8f8snow
#0b0504black
Card foreground
#080302black
#fdfcfcsnow
Popover
#fdfcfbsnow
#070303black
Popover foreground
#0c0403black
#fcf8f8snow
Primary
#c45d54indianred
#c45d54indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#54bbc4mediumturquoise
#54bbc4mediumturquoise
Secondary foreground
#000000black
#000000black
Muted
#cfe1e2gainsboro
#1d2e30darkslategray
Muted foreground
#4c5f61dimgray
#9eb1b3darkgray
Accent
#54bbc4mediumturquoise
#54bbc4mediumturquoise
Accent foreground
#000000black
#000000black
Destructive
#7d180cmaroon
#da2916firebrick
Destructive foreground
#f9c8c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c45d54indianred
#c45d54indianred

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.47:1AAA
Primary button4.14:1AA Large
Secondary button9.29:1AAA
Muted text4.97:1AA
Accent9.29:1AAA
Destructive7.00:1AAA
Dark mode
Text on background19.44:1AAA
Text on card19.77:1AAA
Primary button4.14:1AA Large
Secondary button9.29:1AAA
Muted text6.31:1AA
Accent9.29:1AAA
Destructive4.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 23.6);
  --foreground: oklch(0.122 0.019 28.687);
  --muted: oklch(0.896 0.019 203.399);
  --muted-foreground: oklch(0.472 0.023 203.215);
  --popover: oklch(0.991 0.002 23.6);
  --popover-foreground: oklch(0.122 0.019 28.687);
  --card: oklch(0.983 0.004 23.62);
  --card-foreground: oklch(0.106 0.017 28.762);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.604 0.134 27.051);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.735 0.096 203.42);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.735 0.096 203.42);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.386 0.138 30.466);
  --destructive-foreground: oklch(0.874 0.057 25.648);
  --ring: oklch(0.604 0.134 27.051);
  --chart-1: oklch(0.604 0.134 27.051);
  --chart-2: oklch(0.735 0.096 203.42);
  --chart-3: oklch(0.735 0.096 203.42);
  --chart-4: oklch(0.752 0.091 203.301);
  --chart-5: oklch(0.604 0.142 27.324);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.013 27.198);
  --foreground: oklch(0.983 0.003 23.614);
  --muted: oklch(0.287 0.023 203.122);
  --muted-foreground: oklch(0.746 0.021 203.343);
  --popover: oklch(0.108 0.013 27.198);
  --popover-foreground: oklch(0.983 0.003 23.614);
  --card: oklch(0.124 0.015 27.17);
  --card-foreground: oklch(0.991 0.002 23.597);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.604 0.134 27.051);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.735 0.096 203.42);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.735 0.096 203.42);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.575 0.213 30.52);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.604 0.134 27.051);
  --chart-1: oklch(0.604 0.134 27.051);
  --chart-2: oklch(0.735 0.096 203.42);
  --chart-3: oklch(0.735 0.096 203.42);
  --chart-4: oklch(0.752 0.091 203.301);
  --chart-5: oklch(0.604 0.142 27.324);
}