Well-documented for shadcn/ui

Well-documented is a shadcn/ui theme built around a near-black primary color (#0d020c) with near-black accents (#020c0d). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the near-black primary (#0d020c) on a purple-tinted background (#0e060e).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#0e060eblack
Foreground
#140613black
#ffffffwhite
Card
#fdf7fcsnow
#0e060eblack
Card foreground
#140613black
#ffffffwhite
Popover
#fdf7fcsnow
#0e060eblack
Popover foreground
#140613black
#ffffffwhite
Primary
#0d020cblack
#0d020cblack
Primary foreground
#e260dborchid
#e260dborchid
Secondary
#0c0d02black
#0c0d02black
Secondary foreground
#b2b922yellowgreen
#b2b922yellowgreen
Muted
#eff0e0beige
#1e1f0fblack
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#020c0dblack
#020c0dblack
Accent foreground
#22b2b9lightseagreen
#22b2b9lightseagreen
Destructive
#d43511firebrick
#d43511firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d020cblack
#0d020cblack

Contrast

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

Light mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button6.70:1AA
Secondary button9.17:1AAA
Muted text5.79:1AA
Accent7.65:1AAA
Destructive4.85:1AA
Dark mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button6.70:1AA
Secondary button9.17:1AAA
Muted text6.63:1AA
Accent7.65:1AAA
Destructive4.85:1AA

CSS variables

Paste this into your globals.css to use Well-documented in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 327.121);
  --foreground: oklch(0.152 0.036 328.913);
  --muted: oklch(0.95 0.021 109.109);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.982 0.009 327.121);
  --popover-foreground: oklch(0.152 0.036 328.913);
  --card: oklch(0.982 0.009 327.121);
  --card-foreground: oklch(0.152 0.036 328.913);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.122 0.036 328.974);
  --primary-foreground: oklch(0.694 0.215 329.583);
  --secondary: oklch(0.154 0.025 111.038);
  --secondary-foreground: oklch(0.756 0.16 112.707);
  --accent: oklch(0.145 0.018 198.859);
  --accent-foreground: oklch(0.696 0.112 200.557);
  --destructive: oklch(0.573 0.201 33.271);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.122 0.036 328.974);
  --chart-1: oklch(0.122 0.036 328.974);
  --chart-2: oklch(0.154 0.025 111.038);
  --chart-3: oklch(0.145 0.018 198.859);
  --chart-4: oklch(0.21 0.037 111.728);
  --chart-5: oklch(0.122 0.037 329.064);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.022 328.292);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.233 0.028 110.819);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.14 0.022 328.292);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.022 328.292);
  --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.122 0.036 328.974);
  --primary-foreground: oklch(0.694 0.215 329.583);
  --secondary: oklch(0.154 0.025 111.038);
  --secondary-foreground: oklch(0.756 0.16 112.707);
  --accent: oklch(0.145 0.018 198.859);
  --accent-foreground: oklch(0.696 0.112 200.557);
  --destructive: oklch(0.573 0.201 33.271);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.122 0.036 328.974);
  --chart-1: oklch(0.122 0.036 328.974);
  --chart-2: oklch(0.154 0.025 111.038);
  --chart-3: oklch(0.145 0.018 198.859);
  --chart-4: oklch(0.21 0.037 111.728);
  --chart-5: oklch(0.122 0.037 329.064);
}