Document for shadcn/ui

Document is a shadcn/ui theme built around a neutral gray primary color (#3d3d3d) with neutral gray accents (#3d3d3d). The light mode uses a neutral background (#fdfbfb). Dark mode keeps the neutral gray primary (#3d3d3d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfbsnow
#000000black
Foreground
#090101black
#fbf9f9snow
Card
#fdfbfbsnow
#000000black
Card foreground
#090101black
#fbf9f9snow
Popover
#fdfbfbsnow
#000000black
Popover foreground
#090101black
#fbf9f9snow
Primary
#3d3d3ddarkslategray
#3d3d3ddarkslategray
Primary foreground
#d6d6d6lightgrey
#d6d6d6lightgrey
Secondary
#3d3d3ddarkslategray
#3d3d3ddarkslategray
Secondary foreground
#d6d6d6lightgrey
#d6d6d6lightgrey
Muted
#efe6e6linen
#191010black
Muted foreground
#4b4444darkslategray
#bbb4b4silver
Accent
#3d3d3ddarkslategray
#3d3d3ddarkslategray
Accent foreground
#d6d6d6lightgrey
#d6d6d6lightgrey
Destructive
#ca2112firebrick
#ed4031tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3d3d3ddarkslategray
#3d3d3ddarkslategray

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card20.11:1AAA
Primary button7.45:1AAA
Secondary button7.45:1AAA
Muted text7.76:1AAA
Accent7.45:1AAA
Destructive5.63:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button7.45:1AAA
Secondary button7.45:1AAA
Muted text9.17:1AAA
Accent7.45:1AAA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.193);
  --foreground: oklch(0.099 0.026 22.938);
  --muted: oklch(0.932 0.01 17.331);
  --muted-foreground: oklch(0.393 0.01 17.574);
  --popover: oklch(0.991 0.002 17.193);
  --popover-foreground: oklch(0.099 0.026 22.938);
  --card: oklch(0.991 0.002 17.193);
  --card-foreground: oklch(0.099 0.026 22.938);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.361 0 180);
  --primary-foreground: oklch(0.877 0 180);
  --secondary: oklch(0.361 0 180);
  --secondary-foreground: oklch(0.877 0 180);
  --accent: oklch(0.361 0 180);
  --accent-foreground: oklch(0.877 0 180);
  --destructive: oklch(0.539 0.204 30.08);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.361 0 180);
  --chart-1: oklch(0.361 0 180);
  --chart-2: oklch(0.361 0 180);
  --chart-3: oklch(0.361 0 180);
  --chart-4: oklch(0.39 0 165.964);
  --chart-5: oklch(0.357 0.005 17.395);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 17.189);
  --muted: oklch(0.185 0.015 18.632);
  --muted-foreground: oklch(0.776 0.008 17.332);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 17.189);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.002 17.189);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.361 0 180);
  --primary-foreground: oklch(0.877 0 180);
  --secondary: oklch(0.361 0 180);
  --secondary-foreground: oklch(0.877 0 180);
  --accent: oklch(0.361 0 180);
  --accent-foreground: oklch(0.877 0 180);
  --destructive: oklch(0.628 0.212 29.514);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.361 0 180);
  --chart-1: oklch(0.361 0 180);
  --chart-2: oklch(0.361 0 180);
  --chart-3: oklch(0.361 0 180);
  --chart-4: oklch(0.39 0 165.964);
  --chart-5: oklch(0.357 0.005 17.395);
}