Coverall is a shadcn/ui theme built around a violet primary color (#541881) with green accents (#458118). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#541881) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #030104black |
| Foreground | #030104black | #f8f6f9whitesmoke |
| Card | #fdfbfewhite | #030104black |
| Card foreground | #030104black | #f8f6f9whitesmoke |
| Popover | #fdfbfewhite | #030104black |
| Popover foreground | #030104black | #f8f6f9whitesmoke |
| Primary | #541881indigo | #541881indigo |
| Primary foreground | #e8d4f7lavender | #e8d4f7lavender |
| Secondary | #458118darkolivegreen | #458118darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e2ebdbgainsboro | #1b2414black |
| Muted foreground | #5a6a4edimgray | #a1b195darkseagreen |
| Accent | #458118darkolivegreen | #458118darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ba1708firebrick | #dc1b09red |
| Destructive foreground | #fff6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #541881indigo | #541881indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 4.74:1 | AA |
| Muted text | 4.74:1 | AA |
| Accent | 4.74:1 | AA |
| Destructive | 6.14:1 | AA |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 4.74:1 | AA |
| Muted text | 7.06:1 | AAA |
| Accent | 4.74:1 | AA |
| Destructive | 4.98:1 | AA |
Paste this into your globals.css to use Coverall in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 311.04);
--foreground: oklch(0.08 0.02 313.139);
--muted: oklch(0.928 0.023 131.303);
--muted-foreground: oklch(0.502 0.046 131.949);
--popover: oklch(0.99 0.005 311.04);
--popover-foreground: oklch(0.08 0.02 313.139);
--card: oklch(0.99 0.005 311.04);
--card-foreground: oklch(0.08 0.02 313.139);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.366 0.164 304.985);
--primary-foreground: oklch(0.897 0.052 310.583);
--secondary: oklch(0.543 0.147 135.269);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.543 0.147 135.269);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.503 0.196 30.092);
--destructive-foreground: oklch(0.98 0.009 23.675);
--ring: oklch(0.366 0.164 304.985);
--chart-1: oklch(0.366 0.164 304.985);
--chart-2: oklch(0.543 0.147 135.269);
--chart-3: oklch(0.543 0.147 135.269);
--chart-4: oklch(0.581 0.159 135.335);
--chart-5: oklch(0.366 0.168 304.574);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.019 312.943);
--foreground: oklch(0.974 0.005 311.037);
--muted: oklch(0.246 0.031 132.326);
--muted-foreground: oklch(0.74 0.042 131.603);
--popover: oklch(0.081 0.019 312.943);
--popover-foreground: oklch(0.974 0.005 311.037);
--card: oklch(0.081 0.019 312.943);
--card-foreground: oklch(0.974 0.005 311.037);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.366 0.164 304.985);
--primary-foreground: oklch(0.897 0.052 310.583);
--secondary: oklch(0.543 0.147 135.269);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.543 0.147 135.269);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.57 0.223 30.056);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.366 0.164 304.985);
--chart-1: oklch(0.366 0.164 304.985);
--chart-2: oklch(0.543 0.147 135.269);
--chart-3: oklch(0.543 0.147 135.269);
--chart-4: oklch(0.581 0.159 135.335);
--chart-5: oklch(0.366 0.168 304.574);
}