Accurate is a shadcn/ui theme built around a purple primary color (#91468c) with teal accents (#468c91). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the purple primary (#91468c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #000000black |
| Foreground | #000000black | #f8f6f8whitesmoke |
| Card | #fdfcfdwhite | #000000black |
| Card foreground | #000000black | #f8f6f8whitesmoke |
| Popover | #fdfcfdwhite | #000000black |
| Popover foreground | #000000black | #f8f6f8whitesmoke |
| Primary | #91468crebeccapurple | #91468crebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8c9146olivedrab | #8c9146olivedrab |
| Secondary foreground | #070703black | #070703black |
| Muted | #f3f4e7linen | #17180bblack |
| Muted foreground | #50504edarkslategray | #b1b1afdarkgray |
| Accent | #468c91cadetblue | #468c91cadetblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #853405saddlebrown | #f76918chocolate |
| Destructive foreground | #fdd6bfpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #91468crebeccapurple | #91468crebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 5.97:1 | AA |
| Muted text | 7.25:1 | AAA |
| Accent | 3.89:1 | AA Large |
| Destructive | 6.25:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 5.97:1 | AA |
| Muted text | 8.31:1 | AAA |
| Accent | 3.89:1 | AA Large |
| Destructive | 6.99:1 | AA |
Paste this into your globals.css to use Accurate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 327.571);
--foreground: oklch(0 0 0);
--muted: oklch(0.962 0.017 109.806);
--muted-foreground: oklch(0.43 0.003 109.589);
--popover: oklch(0.992 0.003 327.571);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0.003 327.571);
--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.513 0.136 329.889);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.635 0.099 112.308);
--secondary-foreground: oklch(0.125 0.011 110.596);
--accent: oklch(0.595 0.071 201.601);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.433 0.123 43.87);
--destructive-foreground: oklch(0.902 0.053 51.826);
--ring: oklch(0.513 0.136 329.889);
--chart-1: oklch(0.513 0.136 329.889);
--chart-2: oklch(0.635 0.099 112.308);
--chart-3: oklch(0.595 0.071 201.601);
--chart-4: oklch(0.667 0.104 112.323);
--chart-5: oklch(0.514 0.146 330.048);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 327.576);
--muted: oklch(0.205 0.024 111.557);
--muted-foreground: oklch(0.759 0.002 109.533);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.003 327.576);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.003 327.576);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.513 0.136 329.889);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.635 0.099 112.308);
--secondary-foreground: oklch(0.125 0.011 110.596);
--accent: oklch(0.595 0.071 201.601);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.688 0.191 44.249);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.513 0.136 329.889);
--chart-1: oklch(0.513 0.136 329.889);
--chart-2: oklch(0.635 0.099 112.308);
--chart-3: oklch(0.595 0.071 201.601);
--chart-4: oklch(0.667 0.104 112.323);
--chart-5: oklch(0.514 0.146 330.048);
}