Base16 Dark Atelier Forest for shadcn/ui

Base16 Dark Atelier Forest is a shadcn/ui theme built around a neutral gray primary color (#a8a19f) with neutral gray accents (#443e3c). The light mode uses a neutral background (#1b1918). Dark mode keeps the neutral gray primary (#a8a19f) on a neutral background (#1b1918).

Color palette

TokenLightDark
Background
#1b1918black
#1b1918black
Foreground
#a8a19fdarkgray
#a8a19fdarkgray
Card
#161413black
#161413black
Card foreground
#b4aeacdarkgray
#b4aeacdarkgray
Popover
#131111black
#131111black
Popover foreground
#c0bbb9silver
#c0bbb9silver
Primary
#a8a19fdarkgray
#a8a19fdarkgray
Primary foreground
#0b0a0ablack
#0b0a0ablack
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#2b2522darkslategray
#2b2522darkslategray
Muted foreground
#b0a29bdarkgray
#b0a29bdarkgray
Accent
#443e3cdarkslategray
#443e3cdarkslategray
Accent foreground
#dbd8d6gainsboro
#dbd8d6gainsboro
Destructive
#ff4433tomato
#ff4433tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#262626darkslategray
#262626darkslategray
Input
#2e2e2edarkslategray
#2e2e2edarkslategray
Ring
#a8a19fdarkgray
#a8a19fdarkgray

Contrast

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

Light mode
Text on background6.89:1AA
Text on card8.39:1AAA
Primary button7.74:1AAA
Secondary button7.37:1AAA
Muted text6.12:1AA
Accent7.37:1AAA
Destructive3.42:1AA Large
Dark mode
Text on background6.89:1AA
Text on card8.39:1AAA
Primary button7.74:1AAA
Secondary button7.37:1AAA
Muted text6.12:1AA
Accent7.37:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.215 0.004 48.541);
  --foreground: oklch(0.713 0.009 35.974);
  --muted: oklch(0.269 0.011 48.297);
  --muted-foreground: oklch(0.723 0.02 48.435);
  --popover: oklch(0.181 0.003 48.568);
  --popover-foreground: oklch(0.795 0.006 35.986);
  --card: oklch(0.193 0.003 48.558);
  --card-foreground: oklch(0.755 0.008 35.98);
  --border: oklch(0.27 0 180);
  --input: oklch(0.301 0 189.462);
  --primary: oklch(0.713 0.009 35.974);
  --primary-foreground: oklch(0.145 0.001 36.251);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.37 0.008 48.487);
  --accent-foreground: oklch(0.884 0.004 48.695);
  --destructive: oklch(0.662 0.225 29.579);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.713 0.009 35.974);
  --chart-1: oklch(0.713 0.009 35.974);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.37 0.008 48.487);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.712 0.014 35.959);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.215 0.004 48.541);
  --foreground: oklch(0.713 0.009 35.974);
  --muted: oklch(0.269 0.011 48.297);
  --muted-foreground: oklch(0.723 0.02 48.435);
  --popover: oklch(0.181 0.003 48.568);
  --popover-foreground: oklch(0.795 0.006 35.986);
  --card: oklch(0.193 0.003 48.558);
  --card-foreground: oklch(0.755 0.008 35.98);
  --border: oklch(0.27 0 180);
  --input: oklch(0.301 0 189.462);
  --primary: oklch(0.713 0.009 35.974);
  --primary-foreground: oklch(0.145 0.001 36.251);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.37 0.008 48.487);
  --accent-foreground: oklch(0.884 0.004 48.695);
  --destructive: oklch(0.662 0.225 29.579);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.713 0.009 35.974);
  --chart-1: oklch(0.713 0.009 35.974);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.37 0.008 48.487);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.712 0.014 35.959);
}