Tax is a shadcn/ui theme built around a neutral gray primary color (#7c8d89) with neutral gray accents (#7c888d). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the neutral gray primary (#7c8d89) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfdwhite | #030706black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8fcfbmintcream | #050a09black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfdfdwhite | #030706black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #7c8d89gray | #7c8d89gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #7c8d81gray | #7c8d81gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e9f2ebhoneydew | #0d1610black |
| Muted foreground | #48604fdarkslategray | #9fb7a6darkgray |
| Accent | #7c888dlightslategray | #7c888dlightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #a23c02saddlebrown | #fd7e35coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7c8d89gray | #7c8d89gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 5.99:1 | AA |
| Muted text | 5.98:1 | AA |
| Accent | 5.78:1 | AA |
| Destructive | 6.60:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 5.99:1 | AA |
| Muted text | 8.57:1 | AAA |
| Accent | 5.78:1 | AA |
| Destructive | 8.22:1 | AAA |
Paste this into your globals.css to use Tax in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 182.006);
--foreground: oklch(0 0 0);
--muted: oklch(0.951 0.013 154.945);
--muted-foreground: oklch(0.464 0.039 153.518);
--popover: oklch(0.994 0.002 182.006);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.004 181.944);
--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.629 0.021 181.134);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.626 0.027 154.378);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.619 0.016 223.423);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.493 0.146 42.584);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.629 0.021 181.134);
--chart-1: oklch(0.629 0.021 181.134);
--chart-2: oklch(0.626 0.027 154.378);
--chart-3: oklch(0.619 0.016 223.423);
--chart-4: oklch(0.651 0.025 154.467);
--chart-5: oklch(0.635 0.029 180.744);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.009 182.015);
--foreground: oklch(1 0 180);
--muted: oklch(0.19 0.019 153.239);
--muted-foreground: oklch(0.755 0.035 154.305);
--popover: oklch(0.121 0.009 182.015);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.01 182.015);
--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.629 0.021 181.134);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.626 0.027 154.378);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.619 0.016 223.423);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.729 0.175 47.124);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.629 0.021 181.134);
--chart-1: oklch(0.629 0.021 181.134);
--chart-2: oklch(0.626 0.027 154.378);
--chart-3: oklch(0.619 0.016 223.423);
--chart-4: oklch(0.651 0.025 154.467);
--chart-5: oklch(0.635 0.029 180.744);
}