Documentary is a shadcn/ui theme built around a light green primary color (#e7f6c6) with muted green accents (#c2caaf). The light mode uses a neutral background (#fdfefb). Dark mode keeps the light green primary (#e7f6c6) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #030401black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fdfefbwhite | #030401black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fdfefbwhite | #030401black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #e7f6c6lightgoldenrodyellow | #e7f6c6lightgoldenrodyellow |
| Primary foreground | #171f05black | #171f05black |
| Secondary | #d6d8cflightgrey | #31312fdarkslategray |
| Secondary foreground | #3d4134darkslategray | #cacbc8lightgrey |
| Muted | #e6ebdbgainsboro | #1f2414black |
| Muted foreground | #484e3cdarkslategray | #bec3b1silver |
| Accent | #c2caafsilver | #4d5143darkslategray |
| Accent foreground | #272b1ddarkslategray | #e4e5e0gainsboro |
| Destructive | #a11712firebrick | #d31e17firebrick |
| Destructive foreground | #fce9e8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7f6c6lightgoldenrodyellow | #e7f6c6lightgoldenrodyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.69:1 | AAA |
| Primary button | 14.88:1 | AAA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 8.52:1 | AAA |
| Destructive | 6.81:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 14.88:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 8.76:1 | AAA |
| Accent | 6.47:1 | AA |
| Destructive | 5.29:1 | AA |
Paste this into your globals.css to use Documentary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 120.089);
--foreground: oklch(0 0 0);
--muted: oklch(0.933 0.023 120.454);
--muted-foreground: oklch(0.413 0.03 121.267);
--popover: oklch(0.995 0.003 120.089);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.995 0.003 120.089);
--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.95 0.064 121.194);
--primary-foreground: oklch(0.223 0.045 123.806);
--secondary: oklch(0.879 0.013 120.292);
--secondary-foreground: oklch(0.368 0.022 121.06);
--accent: oklch(0.825 0.037 120.802);
--accent-foreground: oklch(0.279 0.026 121.639);
--destructive: oklch(0.455 0.172 28.664);
--destructive-foreground: oklch(0.949 0.022 19.932);
--ring: oklch(0.95 0.064 121.194);
--chart-1: oklch(0.95 0.064 121.194);
--chart-2: oklch(0.879 0.013 120.292);
--chart-3: oklch(0.825 0.037 120.802);
--chart-4: oklch(0.9 0.011 120.241);
--chart-5: oklch(0.952 0.067 121.239);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.015 119.908);
--foreground: oklch(0.994 0.002 120.07);
--muted: oklch(0.252 0.031 122.206);
--muted-foreground: oklch(0.808 0.025 120.567);
--popover: oklch(0.102 0.015 119.908);
--popover-foreground: oklch(0.994 0.002 120.07);
--card: oklch(0.102 0.015 119.908);
--card-foreground: oklch(0.994 0.002 120.07);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.95 0.064 121.194);
--primary-foreground: oklch(0.223 0.045 123.806);
--secondary: oklch(0.314 0.003 120.225);
--secondary-foreground: oklch(0.84 0.003 120.099);
--accent: oklch(0.426 0.022 120.916);
--accent-foreground: oklch(0.921 0.007 120.165);
--destructive: oklch(0.555 0.213 28.827);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.95 0.064 121.194);
--chart-1: oklch(0.95 0.064 121.194);
--chart-2: oklch(0.314 0.003 120.225);
--chart-3: oklch(0.426 0.022 120.916);
--chart-4: oklch(0.344 0.004 120.231);
--chart-5: oklch(0.952 0.067 121.239);
}