Admirable for shadcn/ui

Admirable is a shadcn/ui theme built around a near-black primary color (#0b0805) with near-black accents (#08050b). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the near-black primary (#0b0805) on a neutral background (#080503).

Color palette

TokenLightDark
Background
#fdfaf7snow
#080503black
Foreground
#000000black
#fdfdfcwhite
Card
#fcf8f3floralwhite
#0b0804black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfaf7snow
#080503black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#0b0805black
#0b0805black
Primary foreground
#c7a57adarkkhaki
#c7a57adarkkhaki
Secondary
#050b08black
#050b08black
Secondary foreground
#7ac7a5mediumaquamarine
#7ac7a5mediumaquamarine
Muted
#e4e7e6gainsboro
#181b1ablack
Muted foreground
#556d62dimgray
#92aa9fdarkseagreen
Accent
#08050bblack
#08050bblack
Accent foreground
#d5c2e5thistle
#d5c2e5thistle
Destructive
#9d300bsaddlebrown
#d7410forangered
Destructive foreground
#fde5demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b0805black
#0b0805black

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card19.83:1AAA
Primary button8.65:1AAA
Secondary button9.97:1AAA
Muted text4.50:1AA
Accent12.25:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.95:1AAA
Text on card19.97:1AAA
Primary button8.65:1AAA
Secondary button9.97:1AAA
Muted text6.98:1AA
Accent12.25:1AAA
Destructive4.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 73.179);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.926 0.004 167.681);
  --muted-foreground: oklch(0.511 0.032 165.94);
  --popover: oklch(0.987 0.005 73.179);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.008 73.158);
  --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.136 0.011 78.604);
  --primary-foreground: oklch(0.741 0.07 71.999);
  --secondary: oklch(0.139 0.014 167.913);
  --secondary-foreground: oklch(0.771 0.092 163.863);
  --accent: oklch(0.122 0.018 311.597);
  --accent-foreground: oklch(0.841 0.053 309.853);
  --destructive: oklch(0.47 0.152 36.522);
  --destructive-foreground: oklch(0.94 0.028 39.351);
  --ring: oklch(0.136 0.011 78.604);
  --chart-1: oklch(0.136 0.011 78.604);
  --chart-2: oklch(0.139 0.014 167.913);
  --chart-3: oklch(0.122 0.018 311.597);
  --chart-4: oklch(0.184 0.022 164.04);
  --chart-5: oklch(0.137 0.012 78.918);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.011 79.768);
  --foreground: oklch(0.993 0.002 73.208);
  --muted: oklch(0.219 0.006 167.005);
  --muted-foreground: oklch(0.716 0.03 166.605);
  --popover: oklch(0.12 0.011 79.768);
  --popover-foreground: oklch(0.993 0.002 73.208);
  --card: oklch(0.137 0.013 79.418);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.136 0.011 78.604);
  --primary-foreground: oklch(0.741 0.07 71.999);
  --secondary: oklch(0.139 0.014 167.913);
  --secondary-foreground: oklch(0.771 0.092 163.863);
  --accent: oklch(0.122 0.018 311.597);
  --accent-foreground: oklch(0.841 0.053 309.853);
  --destructive: oklch(0.588 0.194 36.134);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.136 0.011 78.604);
  --chart-1: oklch(0.136 0.011 78.604);
  --chart-2: oklch(0.139 0.014 167.913);
  --chart-3: oklch(0.122 0.018 311.597);
  --chart-4: oklch(0.184 0.022 164.04);
  --chart-5: oklch(0.137 0.012 78.918);
}