Gray Matter Light for shadcn/ui

Gray Matter Light is a shadcn/ui theme built around a near-white primary color (#ededed) with neutral gray accents (#cfcfcf). The light mode uses a neutral background (#f5f5f5). Dark mode keeps the near-white primary (#ededed) on a neutral background (#f5f5f5).

Color palette

TokenLightDark
Background
#f5f5f5whitesmoke
#f5f5f5whitesmoke
Foreground
#3d3d3ddarkslategray
#3d3d3ddarkslategray
Card
#f0f0f0whitesmoke
#f0f0f0whitesmoke
Card foreground
#303030darkslategray
#303030darkslategray
Popover
#edededwhitesmoke
#edededwhitesmoke
Popover foreground
#242424darkslategray
#242424darkslategray
Primary
#edededwhitesmoke
#edededwhitesmoke
Primary foreground
#545454dimgray
#545454dimgray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#cfcfcflightgrey
#cfcfcflightgrey
Accent foreground
#363636darkslategray
#363636darkslategray
Destructive
#bb0b02firebrick
#bb0b02firebrick
Destructive foreground
#fff1f0seashell
#fff1f0seashell
Border
#e8e8e8lavender
#e8e8e8lavender
Input
#e0e0e0gainsboro
#e0e0e0gainsboro
Ring
#edededwhitesmoke
#edededwhitesmoke

Contrast

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

Light mode
Text on background9.94:1AAA
Text on card11.55:1AAA
Primary button6.47:1AA
Secondary button7.37:1AAA
Muted text7.22:1AAA
Accent7.72:1AAA
Destructive6.04:1AA
Dark mode
Text on background9.94:1AAA
Text on card11.55:1AAA
Primary button6.47:1AA
Secondary button7.37:1AAA
Muted text7.22:1AAA
Accent7.72:1AAA
Destructive6.04:1AA

CSS variables

Paste this into your globals.css to use Gray Matter Light in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.97 0 180);
  --foreground: oklch(0.361 0 180);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.947 0 180);
  --popover-foreground: oklch(0.259 0 167.471);
  --card: oklch(0.954 0 180);
  --card-foreground: oklch(0.311 0 180);
  --border: oklch(0.931 0 180);
  --input: oklch(0.908 0 180);
  --primary: oklch(0.947 0 180);
  --primary-foreground: oklch(0.446 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.853 0 168.69);
  --accent-foreground: oklch(0.331 0 180);
  --destructive: oklch(0.5 0.201 29.711);
  --destructive-foreground: oklch(0.968 0.015 21.095);
  --ring: oklch(0.947 0 180);
  --chart-1: oklch(0.947 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.853 0 168.69);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.946 0.001 17.178);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.97 0 180);
  --foreground: oklch(0.361 0 180);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.947 0 180);
  --popover-foreground: oklch(0.259 0 167.471);
  --card: oklch(0.954 0 180);
  --card-foreground: oklch(0.311 0 180);
  --border: oklch(0.931 0 180);
  --input: oklch(0.908 0 180);
  --primary: oklch(0.947 0 180);
  --primary-foreground: oklch(0.446 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.853 0 168.69);
  --accent-foreground: oklch(0.331 0 180);
  --destructive: oklch(0.5 0.201 29.711);
  --destructive-foreground: oklch(0.968 0.015 21.095);
  --ring: oklch(0.947 0 180);
  --chart-1: oklch(0.947 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.853 0 168.69);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.946 0.001 17.178);
}