Base16 Dark Embers for shadcn/ui

Base16 Dark Embers is a shadcn/ui theme built around a muted orange primary color (#a29a90) with muted deep orange accents (#433a2d). The light mode uses an orange-tinted background (#15120e). Dark mode keeps the muted orange primary (#a29a90) on an orange-tinted background (#15120e).

Color palette

TokenLightDark
Background
#15120eblack
#15120eblack
Foreground
#a29a90rosybrown
#a29a90rosybrown
Card
#0f0d0ablack
#0f0d0ablack
Card foreground
#aea69edarkgray
#aea69edarkgray
Popover
#0c0a08black
#0c0a08black
Popover foreground
#b9b3acdarkgray
#b9b3acdarkgray
Primary
#a29a90rosybrown
#a29a90rosybrown
Primary foreground
#000000black
#000000black
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#2b2722darkslategray
#2b2722darkslategray
Muted foreground
#b0a79bdarkgray
#b0a79bdarkgray
Accent
#433a2ddarkslategray
#433a2ddarkslategray
Accent foreground
#dad2c8lightgrey
#dad2c8lightgrey
Destructive
#fe1b1bred
#fe1b1bred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#211f1cblack
#211f1cblack
Input
#2a2723darkslategray
#2a2723darkslategray
Ring
#a29a90rosybrown
#a29a90rosybrown

Contrast

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

Light mode
Text on background6.70:1AA
Text on card8.07:1AAA
Primary button7.53:1AAA
Secondary button7.37:1AAA
Muted text6.26:1AA
Accent7.50:1AAA
Destructive3.90:1AA Large
Dark mode
Text on background6.70:1AA
Text on card8.07:1AAA
Primary button7.53:1AAA
Secondary button7.37:1AAA
Muted text6.26:1AA
Accent7.50:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.186 0.009 74.563);
  --foreground: oklch(0.689 0.017 71.216);
  --muted: oklch(0.275 0.011 74.648);
  --muted-foreground: oklch(0.733 0.02 74.762);
  --popover: oklch(0.148 0.006 75.783);
  --popover-foreground: oklch(0.77 0.013 71.303);
  --card: oklch(0.161 0.007 74.636);
  --card-foreground: oklch(0.73 0.015 71.264);
  --border: oklch(0.241 0.007 74.754);
  --input: oklch(0.273 0.008 74.738);
  --primary: oklch(0.689 0.017 71.216);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.353 0.024 74.318);
  --accent-foreground: oklch(0.868 0.016 74.835);
  --destructive: oklch(0.633 0.25 28.397);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.689 0.017 71.216);
  --chart-1: oklch(0.689 0.017 71.216);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.353 0.024 74.318);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.692 0.023 71.128);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.186 0.009 74.563);
  --foreground: oklch(0.689 0.017 71.216);
  --muted: oklch(0.275 0.011 74.648);
  --muted-foreground: oklch(0.733 0.02 74.762);
  --popover: oklch(0.148 0.006 75.783);
  --popover-foreground: oklch(0.77 0.013 71.303);
  --card: oklch(0.161 0.007 74.636);
  --card-foreground: oklch(0.73 0.015 71.264);
  --border: oklch(0.241 0.007 74.754);
  --input: oklch(0.273 0.008 74.738);
  --primary: oklch(0.689 0.017 71.216);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.353 0.024 74.318);
  --accent-foreground: oklch(0.868 0.016 74.835);
  --destructive: oklch(0.633 0.25 28.397);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.689 0.017 71.216);
  --chart-1: oklch(0.689 0.017 71.216);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.353 0.024 74.318);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.692 0.023 71.128);
}