Author is a shadcn/ui theme built around a neutral gray primary color (#9fa0a8) with neutral gray accents (#a29fa8). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the neutral gray primary (#9fa0a8) on a blue-tinted background (#03040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #03040cblack |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #fcfcfdwhite | #03040cblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fcfcfdwhite | #03040cblack |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #9fa0a8darkgray | #9fa0a8darkgray |
| Primary foreground | #0a0a0bblack | #0a0a0bblack |
| Secondary | #9fa4a8darkgray | #9fa4a8darkgray |
| Secondary foreground | #0a0a0bblack | #0a0a0bblack |
| Muted | #ecf1f3whitesmoke | #0c1013black |
| Muted foreground | #5b6971dimgray | #8e9ca4darkgray |
| Accent | #a29fa8darkgray | #a29fa8darkgray |
| Accent foreground | #0a0a0bblack | #0a0a0bblack |
| Destructive | #ca1107firebrick | #f73126orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9fa0a8darkgray | #9fa0a8darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 20.45:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 4.97:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 5.85:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Author in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 279.314);
--foreground: oklch(0 0 0);
--muted: oklch(0.954 0.006 232.67);
--muted-foreground: oklch(0.512 0.022 233.237);
--popover: oklch(0.991 0.002 279.314);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.002 279.314);
--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.707 0.012 279.09);
--primary-foreground: oklch(0.144 0.002 279.02);
--secondary: oklch(0.716 0.008 232.744);
--secondary-foreground: oklch(0.146 0.001 232.682);
--accent: oklch(0.707 0.014 302.633);
--accent-foreground: oklch(0.144 0.002 302.812);
--destructive: oklch(0.531 0.211 29.514);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.707 0.012 279.09);
--chart-1: oklch(0.707 0.012 279.09);
--chart-2: oklch(0.716 0.008 232.744);
--chart-3: oklch(0.707 0.014 302.633);
--chart-4: oklch(0.741 0.008 232.723);
--chart-5: oklch(0.701 0.019 278.929);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.022 272.406);
--foreground: oklch(0.991 0.001 279.324);
--muted: oklch(0.171 0.009 233.46);
--muted-foreground: oklch(0.684 0.02 233.022);
--popover: oklch(0.113 0.022 272.406);
--popover-foreground: oklch(0.991 0.001 279.324);
--card: oklch(0.113 0.022 272.406);
--card-foreground: oklch(0.991 0.001 279.324);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.707 0.012 279.09);
--primary-foreground: oklch(0.144 0.002 279.02);
--secondary: oklch(0.716 0.008 232.744);
--secondary-foreground: oklch(0.146 0.001 232.682);
--accent: oklch(0.707 0.014 302.633);
--accent-foreground: oklch(0.144 0.002 302.812);
--destructive: oklch(0.633 0.233 28.888);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.707 0.012 279.09);
--chart-1: oklch(0.707 0.012 279.09);
--chart-2: oklch(0.716 0.008 232.744);
--chart-3: oklch(0.707 0.014 302.633);
--chart-4: oklch(0.741 0.008 232.723);
--chart-5: oklch(0.701 0.019 278.929);
}