Base16 Dark Eighties for shadcn/ui

Base16 Dark Eighties is a shadcn/ui theme built around a muted light yellow primary color (#d4d1c9) with neutral gray accents (#545454). The light mode uses a neutral background (#2e2e2e). Dark mode keeps the muted light yellow primary (#d4d1c9) on a neutral background (#2e2e2e).

Color palette

TokenLightDark
Background
#2e2e2edarkslategray
#2e2e2edarkslategray
Foreground
#d4d1c9lightgrey
#d4d1c9lightgrey
Card
#292929darkslategray
#292929darkslategray
Card foreground
#dfddd7gainsboro
#dfddd7gainsboro
Popover
#262626darkslategray
#262626darkslategray
Popover foreground
#ebe9e6linen
#ebe9e6linen
Primary
#d4d1c9lightgrey
#d4d1c9lightgrey
Primary foreground
#3b3830darkslategray
#3b3830darkslategray
Secondary
#40403fdarkslategray
#40403fdarkslategray
Secondary foreground
#d9d9d8gainsboro
#d9d9d8gainsboro
Muted
#3f3131darkslategray
#3f3131darkslategray
Muted foreground
#c0afafsilver
#c0afafsilver
Accent
#545454dimgray
#545454dimgray
Accent foreground
#edededwhitesmoke
#edededwhitesmoke
Destructive
#f45434tomato
#f45434tomato
Destructive foreground
#000000black
#000000black
Border
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Input
#424242darkslategray
#424242darkslategray
Ring
#d4d1c9lightgrey
#d4d1c9lightgrey

Contrast

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

Light mode
Text on background8.91:1AAA
Text on card10.73:1AAA
Primary button7.67:1AAA
Secondary button7.33:1AAA
Muted text5.87:1AA
Accent6.45:1AA
Destructive6.16:1AA
Dark mode
Text on background8.91:1AAA
Text on card10.73:1AAA
Primary button7.67:1AAA
Secondary button7.33:1AAA
Muted text5.87:1AA
Accent6.45:1AA
Destructive6.16:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.301 0 189.462);
  --foreground: oklch(0.861 0.011 90.216);
  --muted: oklch(0.33 0.02 18.192);
  --muted-foreground: oklch(0.769 0.02 17.59);
  --popover: oklch(0.27 0 180);
  --popover-foreground: oklch(0.935 0.005 90.163);
  --card: oklch(0.28 0 180);
  --card-foreground: oklch(0.898 0.008 90.189);
  --border: oklch(0.351 0 167.471);
  --input: oklch(0.38 0 180);
  --primary: oklch(0.861 0.011 90.216);
  --primary-foreground: oklch(0.342 0.015 90.384);
  --secondary: oklch(0.372 0.002 90.155);
  --secondary-foreground: oklch(0.885 0.001 90.127);
  --accent: oklch(0.446 0 180);
  --accent-foreground: oklch(0.947 0 180);
  --destructive: oklch(0.66 0.202 33.207);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.861 0.011 90.216);
  --chart-1: oklch(0.861 0.011 90.216);
  --chart-2: oklch(0.372 0.002 90.155);
  --chart-3: oklch(0.446 0 180);
  --chart-4: oklch(0.401 0.002 90.155);
  --chart-5: oklch(0.863 0.014 90.239);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.301 0 189.462);
  --foreground: oklch(0.861 0.011 90.216);
  --muted: oklch(0.33 0.02 18.192);
  --muted-foreground: oklch(0.769 0.02 17.59);
  --popover: oklch(0.27 0 180);
  --popover-foreground: oklch(0.935 0.005 90.163);
  --card: oklch(0.28 0 180);
  --card-foreground: oklch(0.898 0.008 90.189);
  --border: oklch(0.351 0 167.471);
  --input: oklch(0.38 0 180);
  --primary: oklch(0.861 0.011 90.216);
  --primary-foreground: oklch(0.342 0.015 90.384);
  --secondary: oklch(0.372 0.002 90.155);
  --secondary-foreground: oklch(0.885 0.001 90.127);
  --accent: oklch(0.446 0 180);
  --accent-foreground: oklch(0.947 0 180);
  --destructive: oklch(0.66 0.202 33.207);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.861 0.011 90.216);
  --chart-1: oklch(0.861 0.011 90.216);
  --chart-2: oklch(0.372 0.002 90.155);
  --chart-3: oklch(0.446 0 180);
  --chart-4: oklch(0.401 0.002 90.155);
  --chart-5: oklch(0.863 0.014 90.239);
}