Interpretation for shadcn/ui

Interpretation is a shadcn/ui theme built around a neutral gray primary color (#8e8f90) with neutral gray accents (#8f908e). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the neutral gray primary (#8e8f90) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcfewhite
#000000black
Foreground
#050d14black
#fcfcfdwhite
Card
#f7fafdghostwhite
#030303black
Card foreground
#040a10black
#ffffffwhite
Popover
#f7fafdghostwhite
#030303black
Popover foreground
#040a10black
#ffffffwhite
Primary
#8e8f90lightslategray
#8e8f90lightslategray
Primary foreground
#000000black
#000000black
Secondary
#908e8fgray
#908e8fgray
Secondary foreground
#000000black
#000000black
Muted
#eee2e8mistyrose
#1d1117black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#8f908egray
#8f908egray
Accent foreground
#000000black
#000000black
Destructive
#7b1604maroon
#f62c09orangered
Destructive foreground
#fcc0b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8e8f90lightslategray
#8e8f90lightslategray

Contrast

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

Light mode
Text on background19.08:1AAA
Text on card18.95:1AAA
Primary button6.46:1AA
Secondary button6.42:1AA
Muted text6.50:1AA
Accent6.53:1AA
Destructive6.80:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button6.46:1AA
Secondary button6.42:1AA
Muted text8.46:1AAA
Accent6.53:1AA
Destructive3.96:1AA Large

CSS variables

Paste this into your globals.css to use Interpretation in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 249.676);
  --foreground: oklch(0.153 0.021 248.193);
  --muted: oklch(0.924 0.015 346.445);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.983 0.005 249.702);
  --popover-foreground: oklch(0.141 0.018 245.275);
  --card: oklch(0.983 0.005 249.702);
  --card-foreground: oklch(0.141 0.018 245.275);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.002 249.681);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.648 0.003 346.144);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.651 0.004 129.183);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.38 0.138 32.238);
  --destructive-foreground: oklch(0.859 0.072 29.998);
  --ring: oklch(0.649 0.002 249.681);
  --chart-1: oklch(0.649 0.002 249.681);
  --chart-2: oklch(0.648 0.003 346.144);
  --chart-3: oklch(0.651 0.004 129.183);
  --chart-4: oklch(0.673 0.003 346.13);
  --chart-5: oklch(0.647 0.009 249.773);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 249.655);
  --muted: oklch(0.196 0.022 348.866);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.649 0.002 249.681);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.648 0.003 346.144);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.651 0.004 129.183);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.627 0.236 31.543);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.002 249.681);
  --chart-1: oklch(0.649 0.002 249.681);
  --chart-2: oklch(0.648 0.003 346.144);
  --chart-3: oklch(0.651 0.004 129.183);
  --chart-4: oklch(0.673 0.003 346.13);
  --chart-5: oklch(0.647 0.009 249.773);
}