Base16 Dark Google for shadcn/ui

Base16 Dark Google is a shadcn/ui theme built around a neutral gray primary color (#c5c9c6) with neutral gray accents (#414549). The light mode uses a neutral background (#1d1f20). Dark mode keeps the neutral gray primary (#c5c9c6) on a neutral background (#1d1f20).

Color palette

TokenLightDark
Background
#1d1f20black
#1d1f20black
Foreground
#c5c9c6silver
#c5c9c6silver
Card
#18191bblack
#18191bblack
Card foreground
#d2d5d3lightgrey
#d2d5d3lightgrey
Popover
#161718black
#161718black
Popover foreground
#dfe1e0gainsboro
#dfe1e0gainsboro
Primary
#c5c9c6silver
#c5c9c6silver
Primary foreground
#2d2f2ddarkslategray
#2d2f2ddarkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#24292edarkslategray
#24292edarkslategray
Muted foreground
#9ea8b3darkgray
#9ea8b3darkgray
Accent
#414549darkslategray
#414549darkslategray
Accent foreground
#dcdee0gainsboro
#dcdee0gainsboro
Destructive
#d51710firebrick
#d51710firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2b2b2bdarkslategray
#2b2b2bdarkslategray
Input
#333333darkslategray
#333333darkslategray
Ring
#c5c9c6silver
#c5c9c6silver

Contrast

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

Light mode
Text on background9.91:1AAA
Text on card11.85:1AAA
Primary button8.04:1AAA
Secondary button7.37:1AAA
Muted text6.09:1AA
Accent7.18:1AAA
Destructive5.29:1AA
Dark mode
Text on background9.91:1AAA
Text on card11.85:1AAA
Primary button8.04:1AAA
Secondary button7.37:1AAA
Muted text6.09:1AA
Accent7.18:1AAA
Destructive5.29:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.236 0.004 248.017);
  --foreground: oklch(0.831 0.005 157.147);
  --muted: oklch(0.277 0.011 248.24);
  --muted-foreground: oklch(0.728 0.019 248.091);
  --popover: oklch(0.203 0.003 247.999);
  --popover-foreground: oklch(0.909 0.003 157.208);
  --card: oklch(0.215 0.004 248.006);
  --card-foreground: oklch(0.87 0.004 157.179);
  --border: oklch(0.29 0 180);
  --input: oklch(0.321 0 180);
  --primary: oklch(0.831 0.005 157.147);
  --primary-foreground: oklch(0.303 0.005 156.922);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.388 0.009 248.058);
  --accent-foreground: oklch(0.899 0.003 247.862);
  --destructive: oklch(0.556 0.219 29.102);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.831 0.005 157.147);
  --chart-1: oklch(0.831 0.005 157.147);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.388 0.009 248.058);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.833 0.01 157.029);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.236 0.004 248.017);
  --foreground: oklch(0.831 0.005 157.147);
  --muted: oklch(0.277 0.011 248.24);
  --muted-foreground: oklch(0.728 0.019 248.091);
  --popover: oklch(0.203 0.003 247.999);
  --popover-foreground: oklch(0.909 0.003 157.208);
  --card: oklch(0.215 0.004 248.006);
  --card-foreground: oklch(0.87 0.004 157.179);
  --border: oklch(0.29 0 180);
  --input: oklch(0.321 0 180);
  --primary: oklch(0.831 0.005 157.147);
  --primary-foreground: oklch(0.303 0.005 156.922);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.388 0.009 248.058);
  --accent-foreground: oklch(0.899 0.003 247.862);
  --destructive: oklch(0.556 0.219 29.102);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.831 0.005 157.147);
  --chart-1: oklch(0.831 0.005 157.147);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.388 0.009 248.058);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.833 0.01 157.029);
}