Ancient for shadcn/ui

Ancient is a shadcn/ui theme built around a light pink primary color (#dcadc6) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the light pink primary (#dcadc6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#000000black
Foreground
#15050dblack
#f9f6f7whitesmoke
Card
#fbf8fasnow
#030303black
Card foreground
#11040bblack
#fbf9fasnow
Popover
#fdfcfdwhite
#000000black
Popover foreground
#15050dblack
#f9f6f7whitesmoke
Primary
#dcadc6thistle
#dcadc6thistle
Primary foreground
#3d1a2ddarkslategray
#3d1a2ddarkslategray
Secondary
#d4d4d4lightgrey
#3a2c33darkslategray
Secondary foreground
#3b3b3bdarkslategray
#d3c5ccthistle
Muted
#f1dfdfmistyrose
#200e18black
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#d4d4d4lightgrey
#3a2c33darkslategray
Accent foreground
#3b3b3bdarkslategray
#d3c5ccthistle
Destructive
#8b0804darkred
#f9221ared
Destructive foreground
#fdc5c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dcadc6thistle
#dcadc6thistle

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.09:1AAA
Primary button7.81:1AAA
Secondary button7.53:1AAA
Muted text7.24:1AAA
Accent7.53:1AAA
Destructive6.52:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.72:1AAA
Primary button7.81:1AAA
Secondary button7.93:1AAA
Muted text9.31:1AAA
Accent7.93:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 343.493);
  --foreground: oklch(0.147 0.035 347.253);
  --muted: oklch(0.918 0.02 17.517);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(0.992 0.002 343.493);
  --popover-foreground: oklch(0.147 0.035 347.253);
  --card: oklch(0.983 0.004 343.544);
  --card-foreground: oklch(0.134 0.031 345.65);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.797 0.064 345.343);
  --primary-foreground: oklch(0.275 0.06 348.586);
  --secondary: oklch(0.869 0 165.964);
  --secondary-foreground: oklch(0.351 0 167.471);
  --accent: oklch(0.869 0 165.964);
  --accent-foreground: oklch(0.351 0 167.471);
  --destructive: oklch(0.404 0.161 29.433);
  --destructive-foreground: oklch(0.874 0.065 20.755);
  --ring: oklch(0.797 0.064 345.343);
  --chart-1: oklch(0.797 0.064 345.343);
  --chart-2: oklch(0.869 0 165.964);
  --chart-3: oklch(0.869 0 165.964);
  --chart-4: oklch(0.892 0 180);
  --chart-5: oklch(0.796 0.068 345.485);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.004 343.554);
  --muted: oklch(0.194 0.034 347.557);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.004 343.554);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.003 343.517);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.797 0.064 345.343);
  --primary-foreground: oklch(0.275 0.06 348.586);
  --secondary: oklch(0.312 0.023 345.181);
  --secondary-foreground: oklch(0.837 0.018 343.964);
  --accent: oklch(0.312 0.023 345.181);
  --accent-foreground: oklch(0.837 0.018 343.964);
  --destructive: oklch(0.627 0.243 28.947);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.797 0.064 345.343);
  --chart-1: oklch(0.797 0.064 345.343);
  --chart-2: oklch(0.312 0.023 345.181);
  --chart-3: oklch(0.312 0.023 345.181);
  --chart-4: oklch(0.341 0.026 345.231);
  --chart-5: oklch(0.796 0.068 345.485);
}