Base16 Dark Atelier Heath for shadcn/ui

Base16 Dark Atelier Heath is a shadcn/ui theme built around a muted purple primary color (#ab9bab) with neutral gray accents (#443c44). The light mode uses a neutral background (#1b181b). Dark mode keeps the muted purple primary (#ab9bab) on a neutral background (#1b181b).

Color palette

TokenLightDark
Background
#1b181bblack
#1b181bblack
Foreground
#ab9babdarkgray
#ab9babdarkgray
Card
#161316black
#161316black
Card foreground
#b7a9b7darkgray
#b7a9b7darkgray
Popover
#131113black
#131113black
Popover foreground
#c3b7c3silver
#c3b7c3silver
Primary
#ab9babdarkgray
#ab9babdarkgray
Primary foreground
#0b090bblack
#0b090bblack
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#2b222bdarkslategray
#2b222bdarkslategray
Muted foreground
#b09bb0darkgray
#b09bb0darkgray
Accent
#443c44darkslategray
#443c44darkslategray
Accent foreground
#dbd6dbgainsboro
#dbd6dbgainsboro
Destructive
#f7472btomato
#f7472btomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#262626darkslategray
#262626darkslategray
Input
#2e2e2edarkslategray
#2e2e2edarkslategray
Ring
#ab9babdarkgray
#ab9babdarkgray

Contrast

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

Light mode
Text on background6.71:1AA
Text on card8.22:1AAA
Primary button7.57:1AAA
Secondary button7.37:1AAA
Muted text5.99:1AA
Accent7.43:1AAA
Destructive3.56:1AA Large
Dark mode
Text on background6.71:1AA
Text on card8.22:1AAA
Primary button7.57:1AAA
Secondary button7.37:1AAA
Muted text5.99:1AA
Accent7.43:1AAA
Destructive3.56:1AA Large

CSS variables

Paste this into your globals.css to use Base16 Dark Atelier Heath in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.214 0.008 325.838);
  --foreground: oklch(0.709 0.03 325.891);
  --muted: oklch(0.265 0.021 326.162);
  --muted-foreground: oklch(0.715 0.039 325.977);
  --popover: oklch(0.18 0.006 325.804);
  --popover-foreground: oklch(0.792 0.021 325.776);
  --card: oklch(0.192 0.006 325.817);
  --card-foreground: oklch(0.751 0.026 325.83);
  --border: oklch(0.27 0 180);
  --input: oklch(0.301 0 189.462);
  --primary: oklch(0.709 0.03 325.891);
  --primary-foreground: oklch(0.144 0.005 325.835);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.367 0.017 325.908);
  --accent-foreground: oklch(0.882 0.008 325.644);
  --destructive: oklch(0.651 0.217 31.654);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.709 0.03 325.891);
  --chart-1: oklch(0.709 0.03 325.891);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.367 0.017 325.908);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.707 0.04 325.994);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.214 0.008 325.838);
  --foreground: oklch(0.709 0.03 325.891);
  --muted: oklch(0.265 0.021 326.162);
  --muted-foreground: oklch(0.715 0.039 325.977);
  --popover: oklch(0.18 0.006 325.804);
  --popover-foreground: oklch(0.792 0.021 325.776);
  --card: oklch(0.192 0.006 325.817);
  --card-foreground: oklch(0.751 0.026 325.83);
  --border: oklch(0.27 0 180);
  --input: oklch(0.301 0 189.462);
  --primary: oklch(0.709 0.03 325.891);
  --primary-foreground: oklch(0.144 0.005 325.835);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.367 0.017 325.908);
  --accent-foreground: oklch(0.882 0.008 325.644);
  --destructive: oklch(0.651 0.217 31.654);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.709 0.03 325.891);
  --chart-1: oklch(0.709 0.03 325.891);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.367 0.017 325.908);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.707 0.04 325.994);
}