Well-documented is a shadcn/ui theme built around a green primary color (#47811d) with pink accents (#811d47). The light mode uses a neutral background (#fafcf8). Dark mode keeps the green primary (#47811d) on a green-tinted background (#0a0e07).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #0a0e07black |
| Foreground | #070c03black | #fafcf8snow |
| Card | #f7faf4whitesmoke | #0c1108black |
| Card foreground | #050802black | #fcfdfcwhite |
| Popover | #f7faf4whitesmoke | #0c1108black |
| Popover foreground | #050802black | #fcfdfcwhite |
| Primary | #47811ddarkolivegreen | #47811ddarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1d4781darkslateblue | #1d4781darkslateblue |
| Secondary foreground | #dae6f7lavender | #dae6f7lavender |
| Muted | #d8dfe9gainsboro | #161d27black |
| Muted foreground | #576170dimgray | #8f99a8darkgray |
| Accent | #811d47brown | #811d47brown |
| Accent foreground | #f7dae6mistyrose | #f7dae6mistyrose |
| Destructive | #9c200dfirebrick | #de2d12orangered |
| Destructive foreground | #fce2demistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #47811ddarkolivegreen | #47811ddarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 4.75:1 | AA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 4.67:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 6.52:1 | AA |
| Text on background | 18.88:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 4.75:1 | AA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 4.68:1 | AA |
Paste this into your globals.css to use Well-documented in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 131.774);
--foreground: oklch(0.146 0.026 130.428);
--muted: oklch(0.901 0.016 256.715);
--muted-foreground: oklch(0.49 0.028 256.798);
--popover: oklch(0.982 0.009 131.8);
--popover-foreground: oklch(0.127 0.022 130.189);
--card: oklch(0.982 0.009 131.8);
--card-foreground: oklch(0.127 0.022 130.189);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.543 0.143 135.353);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.4 0.108 257.486);
--secondary-foreground: oklch(0.92 0.026 256.746);
--accent: oklch(0.41 0.138 0.276);
--accent-foreground: oklch(0.914 0.036 350.732);
--destructive: oklch(0.451 0.162 31.568);
--destructive-foreground: oklch(0.933 0.03 28.125);
--ring: oklch(0.543 0.143 135.353);
--chart-1: oklch(0.543 0.143 135.353);
--chart-2: oklch(0.4 0.108 257.486);
--chart-3: oklch(0.41 0.138 0.276);
--chart-4: oklch(0.426 0.117 257.518);
--chart-5: oklch(0.549 0.148 135.55);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.017 131.612);
--foreground: oklch(0.988 0.005 131.77);
--muted: oklch(0.229 0.022 256.84);
--muted-foreground: oklch(0.681 0.025 256.766);
--popover: oklch(0.17 0.02 132.576);
--popover-foreground: oklch(0.994 0.003 131.747);
--card: oklch(0.17 0.02 132.576);
--card-foreground: oklch(0.994 0.003 131.747);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.543 0.143 135.353);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.4 0.108 257.486);
--secondary-foreground: oklch(0.92 0.026 256.746);
--accent: oklch(0.41 0.138 0.276);
--accent-foreground: oklch(0.914 0.036 350.732);
--destructive: oklch(0.584 0.214 31.465);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.143 135.353);
--chart-1: oklch(0.543 0.143 135.353);
--chart-2: oklch(0.4 0.108 257.486);
--chart-3: oklch(0.41 0.138 0.276);
--chart-4: oklch(0.426 0.117 257.518);
--chart-5: oklch(0.549 0.148 135.55);
}