Esteemed for shadcn/ui

Esteemed is a shadcn/ui theme built around a muted deep violet primary color (#0a080c) with muted deep green accents (#080c0a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep violet primary (#0a080c) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#07050ablack
Foreground
#07020dblack
#f7f5fawhitesmoke
Card
#fcfcfcsnow
#0a060eblack
Card foreground
#050109black
#faf8fcghostwhite
Popover
#ffffffwhite
#07050ablack
Popover foreground
#07020dblack
#f7f5fawhitesmoke
Primary
#0a080cblack
#0a080cblack
Primary foreground
#a18fb7darkgray
#a18fb7darkgray
Secondary
#0c0a08black
#0c0a08black
Secondary foreground
#b7a18frosybrown
#b7a18frosybrown
Muted
#e9d9cegainsboro
#312216black
Muted foreground
#695a4fdimgray
#b0a196darkgray
Accent
#080c0ablack
#080c0ablack
Accent foreground
#8fb7a1darkseagreen
#8fb7a1darkseagreen
Destructive
#b43b13firebrick
#e95a2bchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0a080cblack
#0a080cblack

Contrast

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

Light mode
Text on background20.51:1AAA
Text on card20.24:1AAA
Primary button6.77:1AA
Secondary button8.00:1AAA
Muted text4.82:1AA
Accent8.84:1AAA
Destructive5.86:1AA
Dark mode
Text on background18.74:1AAA
Text on card19.00:1AAA
Primary button6.77:1AA
Secondary button8.00:1AAA
Muted text6.11:1AA
Accent8.84:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.109 0.035 307.032);
  --muted: oklch(0.896 0.023 59.925);
  --muted-foreground: oklch(0.479 0.026 59.518);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.109 0.035 307.032);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.095 0.031 307.622);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.139 0.011 305.485);
  --primary-foreground: oklch(0.679 0.062 304.527);
  --secondary: oklch(0.147 0.006 61.673);
  --secondary-foreground: oklch(0.723 0.037 59.568);
  --accent: oklch(0.15 0.009 161.023);
  --accent-foreground: oklch(0.745 0.054 159.901);
  --destructive: oklch(0.523 0.164 36.962);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.139 0.011 305.485);
  --chart-1: oklch(0.139 0.011 305.485);
  --chart-2: oklch(0.147 0.006 61.673);
  --chart-3: oklch(0.15 0.009 161.023);
  --chart-4: oklch(0.183 0.01 59.506);
  --chart-5: oklch(0.138 0.012 305.465);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.016 306.492);
  --foreground: oklch(0.972 0.007 305.637);
  --muted: oklch(0.267 0.031 58.318);
  --muted-foreground: oklch(0.72 0.023 59.835);
  --popover: oklch(0.122 0.016 306.492);
  --popover-foreground: oklch(0.972 0.007 305.637);
  --card: oklch(0.134 0.018 305.396);
  --card-foreground: oklch(0.982 0.005 305.672);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.139 0.011 305.485);
  --primary-foreground: oklch(0.679 0.062 304.527);
  --secondary: oklch(0.147 0.006 61.673);
  --secondary-foreground: oklch(0.723 0.037 59.568);
  --accent: oklch(0.15 0.009 161.023);
  --accent-foreground: oklch(0.745 0.054 159.901);
  --destructive: oklch(0.648 0.187 37.841);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.139 0.011 305.485);
  --chart-1: oklch(0.139 0.011 305.485);
  --chart-2: oklch(0.147 0.006 61.673);
  --chart-3: oklch(0.15 0.009 161.023);
  --chart-4: oklch(0.183 0.01 59.506);
  --chart-5: oklch(0.138 0.012 305.465);
}