Adored for shadcn/ui

Adored is a shadcn/ui theme built around a muted deep purple primary color (#261f29) with muted deep teal accents (#1f2926). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#261f29) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#ffffffwhite
#030104black
Foreground
#030104black
#fbf8fcghostwhite
Card
#fcfcfcsnow
#060307black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fcfcfcsnow
#060307black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#261f29darkslategray
#261f29darkslategray
Primary foreground
#c2b3c6silver
#c2b3c6silver
Secondary
#29261fdarkslategray
#29261fdarkslategray
Secondary foreground
#c6c2b3silver
#c6c2b3silver
Muted
#ebe5d1antiquewhite
#2e2814black
Muted foreground
#66604ddimgray
#b2ac99darkgray
Accent
#1f2926darkslategray
#1f2926darkslategray
Accent foreground
#b3c6c2silver
#b3c6c2silver
Destructive
#b32e09firebrick
#da380borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#261f29darkslategray
#261f29darkslategray

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button8.06:1AAA
Secondary button8.43:1AAA
Muted text4.96:1AA
Accent8.41:1AAA
Destructive6.32:1AA
Dark mode
Text on background19.70:1AAA
Text on card20.04:1AAA
Primary button8.06:1AAA
Secondary button8.43:1AAA
Muted text6.46:1AA
Accent8.41:1AAA
Destructive4.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.083 0.02 320.353);
  --muted: oklch(0.921 0.027 92.92);
  --muted-foreground: oklch(0.489 0.03 93.114);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.251 0.022 318.242);
  --primary-foreground: oklch(0.786 0.03 318.292);
  --secondary: oklch(0.27 0.014 93.069);
  --secondary-foreground: oklch(0.813 0.02 92.883);
  --accent: oklch(0.269 0.015 179.338);
  --accent-foreground: oklch(0.811 0.021 180.211);
  --destructive: oklch(0.508 0.175 34.435);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.251 0.022 318.242);
  --chart-1: oklch(0.251 0.022 318.242);
  --chart-2: oklch(0.27 0.014 93.069);
  --chart-3: oklch(0.269 0.015 179.338);
  --chart-4: oklch(0.303 0.017 93.082);
  --chart-5: oklch(0.25 0.026 318.219);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.015 319.806);
  --foreground: oklch(0.983 0.005 318.325);
  --muted: oklch(0.278 0.034 93.031);
  --muted-foreground: oklch(0.745 0.028 92.975);
  --popover: oklch(0.108 0.018 319.806);
  --popover-foreground: oklch(0.991 0.003 318.328);
  --card: oklch(0.108 0.018 319.806);
  --card-foreground: oklch(0.991 0.003 318.328);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.251 0.022 318.242);
  --primary-foreground: oklch(0.786 0.03 318.292);
  --secondary: oklch(0.27 0.014 93.069);
  --secondary-foreground: oklch(0.813 0.02 92.883);
  --accent: oklch(0.269 0.015 179.338);
  --accent-foreground: oklch(0.811 0.021 180.211);
  --destructive: oklch(0.586 0.204 34.227);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.251 0.022 318.242);
  --chart-1: oklch(0.251 0.022 318.242);
  --chart-2: oklch(0.27 0.014 93.069);
  --chart-3: oklch(0.269 0.015 179.338);
  --chart-4: oklch(0.303 0.017 93.082);
  --chart-5: oklch(0.25 0.026 318.219);
}