Accuracy is a shadcn/ui theme built around an orange primary color (#dfbb86) with green accents (#d6df86). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#dfbb86) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030302black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #070503black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #030302black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #dfbb86burlywood | #dfbb86burlywood |
| Primary foreground | #281c0bblack | #281c0bblack |
| Secondary | #df8f86darksalmon | #df8f86darksalmon |
| Secondary foreground | #280e0bblack | #280e0bblack |
| Muted | #efe2e1mistyrose | #1e1110black |
| Muted foreground | #4e4746darkslategray | #b9b2b1darkgray |
| Accent | #d6df86khaki | #d6df86khaki |
| Accent foreground | #25280bblack | #25280bblack |
| Destructive | #9e2f0asaddlebrown | #f36c3ftomato |
| Destructive foreground | #fde5ddmistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dfbb86burlywood | #dfbb86burlywood |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 9.21:1 | AAA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 7.20:1 | AAA |
| Accent | 10.63:1 | AAA |
| Destructive | 6.07:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 9.21:1 | AAA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 8.79:1 | AAA |
| Accent | 10.63:1 | AAA |
| Destructive | 7.02:1 | AAA |
Paste this into your globals.css to use Accuracy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.924 0.014 25.12);
--muted-foreground: oklch(0.404 0.009 25.187);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.812 0.08 77.35);
--primary-foreground: oklch(0.238 0.035 75.885);
--secondary: oklch(0.729 0.099 26.644);
--secondary-foreground: oklch(0.204 0.045 28.171);
--accent: oklch(0.877 0.113 113.396);
--accent-foreground: oklch(0.267 0.047 114.402);
--destructive: oklch(0.471 0.153 36.411);
--destructive-foreground: oklch(0.94 0.028 39.349);
--ring: oklch(0.812 0.08 77.35);
--chart-1: oklch(0.812 0.08 77.35);
--chart-2: oklch(0.729 0.099 26.644);
--chart-3: oklch(0.877 0.113 113.396);
--chart-4: oklch(0.755 0.088 26.348);
--chart-5: oklch(0.815 0.084 77.257);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.007 82.833);
--foreground: oklch(0.993 0.001 78.31);
--muted: oklch(0.196 0.022 26.283);
--muted-foreground: oklch(0.769 0.008 25.073);
--popover: oklch(0.095 0.007 82.833);
--popover-foreground: oklch(0.993 0.001 78.31);
--card: oklch(0.12 0.009 82.833);
--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.812 0.08 77.35);
--primary-foreground: oklch(0.238 0.035 75.885);
--secondary: oklch(0.729 0.099 26.644);
--secondary-foreground: oklch(0.204 0.045 28.171);
--accent: oklch(0.877 0.113 113.396);
--accent-foreground: oklch(0.267 0.047 114.402);
--destructive: oklch(0.689 0.176 38.516);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.812 0.08 77.35);
--chart-1: oklch(0.812 0.08 77.35);
--chart-2: oklch(0.729 0.099 26.644);
--chart-3: oklch(0.877 0.113 113.396);
--chart-4: oklch(0.755 0.088 26.348);
--chart-5: oklch(0.815 0.084 77.257);
}