Author is a shadcn/ui theme built around a near-black primary color (#030303) with muted light green accents (#e3e8e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030303) on a green-tinted background (#060e08).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060e08black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #060e08black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #060e08black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #030303black | #030303black |
| Primary foreground | #9b9d9bdarkgray | #9b9d9bdarkgray |
| Secondary | #e3e8e4gainsboro | #273028darkslategray |
| Secondary foreground | #465348darkslategray | #becac0silver |
| Muted | #cdead1gainsboro | #15321ablack |
| Muted foreground | #4f5f51darkslategray | #a0b0a3darkgray |
| Accent | #e3e8e4gainsboro | #273028darkslategray |
| Accent foreground | #465348darkslategray | #becac0silver |
| Destructive | #611d0amaroon | #ed6a45tomato |
| Destructive foreground | #f6b8a7lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030303black | #030303black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 6.52:1 | AA |
| Muted text | 5.25:1 | AA |
| Accent | 6.52:1 | AA |
| Destructive | 7.29:1 | AAA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 6.14:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 6.72:1 | AA |
Paste this into your globals.css to use Author in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.908 0.044 149.59);
--muted-foreground: oklch(0.466 0.029 149.415);
--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.092 0 150.227);
--primary-foreground: oklch(0.692 0.003 150.184);
--secondary: oklch(0.926 0.007 150.146);
--secondary-foreground: oklch(0.428 0.026 149.43);
--accent: oklch(0.926 0.007 150.146);
--accent-foreground: oklch(0.428 0.026 149.43);
--destructive: oklch(0.337 0.104 35.664);
--destructive-foreground: oklch(0.835 0.077 36.028);
--ring: oklch(0.092 0 150.227);
--chart-1: oklch(0.092 0 150.227);
--chart-2: oklch(0.926 0.007 150.146);
--chart-3: oklch(0.926 0.007 150.146);
--chart-4: oklch(0.948 0.005 150.178);
--chart-5: oklch(0.092 0.001 150.17);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.019 149.201);
--foreground: oklch(1 0 180);
--muted: oklch(0.287 0.056 147.24);
--muted-foreground: oklch(0.741 0.026 149.788);
--popover: oklch(0.153 0.019 149.201);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.153 0.019 149.201);
--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.092 0 150.227);
--primary-foreground: oklch(0.692 0.003 150.184);
--secondary: oklch(0.297 0.018 149.435);
--secondary-foreground: oklch(0.828 0.019 149.948);
--accent: oklch(0.297 0.018 149.435);
--accent-foreground: oklch(0.828 0.019 149.948);
--destructive: oklch(0.677 0.17 36.329);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.092 0 150.227);
--chart-1: oklch(0.092 0 150.227);
--chart-2: oklch(0.297 0.018 149.435);
--chart-3: oklch(0.297 0.018 149.435);
--chart-4: oklch(0.329 0.02 149.404);
--chart-5: oklch(0.092 0.001 150.17);
}