Accurate is a shadcn/ui theme built around a light yellow primary color (#fbfaf3) with light blue accents (#f3f5fb). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the light yellow primary (#fbfaf3) on a neutral background (#080703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #080703black |
| Foreground | #080702black | #ffffffwhite |
| Card | #fcfbf8snow | #0b0a04black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fcfbf8snow | #0b0a04black |
| Popover foreground | #040301black | #ffffffwhite |
| Primary | #fbfaf3floralwhite | #fbfaf3floralwhite |
| Primary foreground | #433914darkolivegreen | #433914darkolivegreen |
| Secondary | #f3f5fbaliceblue | #f3f5fbaliceblue |
| Secondary foreground | #2b4091darkslateblue | #2b4091darkslateblue |
| Muted | #d3d6e4gainsboro | #1b1f2cblack |
| Muted foreground | #48494bdarkslategray | #b4b4b7silver |
| Accent | #f3f5fbaliceblue | #f3f5fbaliceblue |
| Accent foreground | #2b4091darkslateblue | #2b4091darkslateblue |
| Destructive | #d12b0afirebrick | #ea300borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbfaf3floralwhite | #fbfaf3floralwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 10.94:1 | AAA |
| Secondary button | 8.58:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 8.58:1 | AAA |
| Destructive | 5.15:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 10.94:1 | AAA |
| Secondary button | 8.58:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 8.58:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Accurate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 95.061);
--foreground: oklch(0.127 0.016 99.436);
--muted: oklch(0.878 0.019 274.758);
--muted-foreground: oklch(0.406 0.004 274.913);
--popover: oklch(0.988 0.005 95.088);
--popover-foreground: oklch(0.101 0.013 99.436);
--card: oklch(0.988 0.005 95.088);
--card-foreground: oklch(0.101 0.013 99.436);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.984 0.009 95.139);
--primary-foreground: oklch(0.347 0.056 95.278);
--secondary: oklch(0.97 0.009 274.921);
--secondary-foreground: oklch(0.404 0.137 268.894);
--accent: oklch(0.97 0.009 274.921);
--accent-foreground: oklch(0.404 0.137 268.894);
--destructive: oklch(0.56 0.205 32.279);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.984 0.009 95.139);
--chart-1: oklch(0.984 0.009 95.139);
--chart-2: oklch(0.97 0.009 274.921);
--chart-3: oklch(0.97 0.009 274.921);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.984 0.009 95.145);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.014 98.923);
--foreground: oklch(1 0 180);
--muted: oklch(0.241 0.027 273.384);
--muted-foreground: oklch(0.771 0.003 274.98);
--popover: oklch(0.144 0.016 98.574);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.016 98.574);
--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.984 0.009 95.139);
--primary-foreground: oklch(0.347 0.056 95.278);
--secondary: oklch(0.97 0.009 274.921);
--secondary-foreground: oklch(0.404 0.137 268.894);
--accent: oklch(0.97 0.009 274.921);
--accent-foreground: oklch(0.404 0.137 268.894);
--destructive: oklch(0.607 0.224 32.205);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.984 0.009 95.139);
--chart-1: oklch(0.984 0.009 95.139);
--chart-2: oklch(0.97 0.009 274.921);
--chart-3: oklch(0.97 0.009 274.921);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.984 0.009 95.145);
}