Document for shadcn/ui

Document is a shadcn/ui theme built around a deep yellow primary color (#5d4d0e) with deep green accents (#455d0e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#5d4d0e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#5d4d0edarkolivegreen
#5d4d0edarkolivegreen
Primary foreground
#f2e4abpalegoldenrod
#f2e4abpalegoldenrod
Secondary
#5d260emaroon
#5d260emaroon
Secondary foreground
#f2c0ablightpink
#f2c0ablightpink
Muted
#e2d9d5gainsboro
#2a211dblack
Muted foreground
#575352dimgray
#adaaa8darkgray
Accent
#455d0edarkolivegreen
#455d0edarkolivegreen
Accent foreground
#ddf2abpalegoldenrod
#ddf2abpalegoldenrod
Destructive
#8f150fdarkred
#d92017crimson
Destructive foreground
#fbd7d5mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5d4d0edarkolivegreen
#5d4d0edarkolivegreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.46:1AA
Secondary button7.38:1AAA
Muted text5.45:1AA
Accent6.12:1AA
Destructive6.90:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.46:1AA
Secondary button7.38:1AAA
Muted text6.80:1AA
Accent6.12:1AA
Destructive5.03:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.89 0.012 44.848);
  --muted-foreground: oklch(0.446 0.005 44.863);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.426 0.08 93.958);
  --primary-foreground: oklch(0.917 0.075 95.739);
  --secondary: oklch(0.343 0.088 41.776);
  --secondary-foreground: oklch(0.848 0.065 44.364);
  --accent: oklch(0.444 0.105 125.72);
  --accent-foreground: oklch(0.929 0.095 121.833);
  --destructive: oklch(0.419 0.157 29.04);
  --destructive-foreground: oklch(0.909 0.04 21.482);
  --ring: oklch(0.426 0.08 93.958);
  --chart-1: oklch(0.426 0.08 93.958);
  --chart-2: oklch(0.343 0.088 41.776);
  --chart-3: oklch(0.444 0.105 125.72);
  --chart-4: oklch(0.375 0.099 41.586);
  --chart-5: oklch(0.43 0.082 93.731);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.257 0.017 44.447);
  --muted-foreground: oklch(0.74 0.005 44.918);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.426 0.08 93.958);
  --primary-foreground: oklch(0.917 0.075 95.739);
  --secondary: oklch(0.343 0.088 41.776);
  --secondary-foreground: oklch(0.848 0.065 44.364);
  --accent: oklch(0.444 0.105 125.72);
  --accent-foreground: oklch(0.929 0.095 121.833);
  --destructive: oklch(0.567 0.217 29.242);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.426 0.08 93.958);
  --chart-1: oklch(0.426 0.08 93.958);
  --chart-2: oklch(0.343 0.088 41.776);
  --chart-3: oklch(0.444 0.105 125.72);
  --chart-4: oklch(0.375 0.099 41.586);
  --chart-5: oklch(0.43 0.082 93.731);
}