Accurate is a shadcn/ui theme built around a vivid deep violet primary color (#0c0212) with muted violet accents (#beb6c3). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid deep violet primary (#0c0212) on a violet-tinted background (#0b050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0b050fblack |
| Foreground | #030104black | #fdfcfdwhite |
| Card | #faf7fdghostwhite | #0e0613black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #faf7fdghostwhite | #0e0613black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0c0212black | #0c0212black |
| Primary foreground | #ddb6f6thistle | #ddb6f6thistle |
| Secondary | #cdc9cflightgrey | #171519black |
| Secondary foreground | #343036darkslategray | #b2a8b8darkgray |
| Muted | #f3eef7whitesmoke | #0e0811black |
| Muted foreground | #5e4f69dimgray | #a696b0darkgray |
| Accent | #beb6c3silver | #302537darkslategray |
| Accent foreground | #242027black | #c9bcd2thistle |
| Destructive | #a61911firebrick | #ea4139tomato |
| Destructive foreground | #fdededlinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c0212black | #0c0212black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 11.69:1 | AAA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 8.14:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.65:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 11.69:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 7.17:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Accurate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 312.326);
--foreground: oklch(0.078 0.025 314.994);
--muted: oklch(0.955 0.014 312.25);
--muted-foreground: oklch(0.453 0.045 311.614);
--popover: oklch(0.98 0.009 312.292);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.009 312.292);
--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.125 0.044 312.653);
--primary-foreground: oklch(0.832 0.096 311.495);
--secondary: oklch(0.841 0.008 312.289);
--secondary-foreground: oklch(0.316 0.01 312.126);
--accent: oklch(0.787 0.02 312.165);
--accent-foreground: oklch(0.252 0.015 311.928);
--destructive: oklch(0.467 0.176 29.127);
--destructive-foreground: oklch(0.959 0.017 21.12);
--ring: oklch(0.125 0.044 312.653);
--chart-1: oklch(0.125 0.044 312.653);
--chart-2: oklch(0.841 0.008 312.289);
--chart-3: oklch(0.787 0.02 312.165);
--chart-4: oklch(0.865 0.007 312.302);
--chart-5: oklch(0.124 0.046 312.693);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.026 312.375);
--foreground: oklch(0.992 0.001 312.349);
--muted: oklch(0.148 0.022 311.452);
--muted-foreground: oklch(0.696 0.041 311.924);
--popover: oklch(0.144 0.03 311.361);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.03 311.361);
--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.125 0.044 312.653);
--primary-foreground: oklch(0.832 0.096 311.495);
--secondary: oklch(0.199 0.01 311.988);
--secondary-foreground: oklch(0.745 0.025 312.112);
--accent: oklch(0.285 0.034 311.454);
--accent-foreground: oklch(0.813 0.033 312.061);
--destructive: oklch(0.625 0.207 27.851);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.125 0.044 312.653);
--chart-1: oklch(0.125 0.044 312.653);
--chart-2: oklch(0.199 0.01 311.988);
--chart-3: oklch(0.285 0.034 311.454);
--chart-4: oklch(0.231 0.013 311.948);
--chart-5: oklch(0.124 0.046 312.693);
}