Verdict is a shadcn/ui theme built around a muted purple primary color (#a65ea4) with muted green accents (#5ea660). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted purple primary (#a65ea4) on a purple-tinted background (#0c040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0c040bblack |
| Foreground | #0d020dblack | #fdfcfdwhite |
| Card | #fdf7fdsnow | #10050fblack |
| Card foreground | #090208black | #ffffffwhite |
| Popover | #fefbfewhite | #0c040bblack |
| Popover foreground | #0d020dblack | #fdfcfdwhite |
| Primary | #a65ea4mediumorchid | #a65ea4mediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5ea660mediumseagreen | #5ea660mediumseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #eaf0eawhitesmoke | #0f150fblack |
| Muted foreground | #546355dimgray | #9cab9cdarkgray |
| Accent | #5ea660mediumseagreen | #5ea660mediumseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #a0130efirebrick | #ec2922crimson |
| Destructive foreground | #fde4e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a65ea4mediumorchid | #a65ea4mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 4.41:1 | AA Large |
| Secondary button | 7.11:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 6.73:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 4.41:1 | AA Large |
| Secondary button | 7.11:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 7.11:1 | AAA |
| Destructive | 4.28:1 | AA Large |
Paste this into your globals.css to use Verdict in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 326.587);
--foreground: oklch(0.123 0.035 328.451);
--muted: oklch(0.95 0.011 146.443);
--muted-foreground: oklch(0.483 0.029 146.007);
--popover: oklch(0.991 0.005 326.587);
--popover-foreground: oklch(0.123 0.035 328.451);
--card: oklch(0.982 0.01 326.633);
--card-foreground: oklch(0.107 0.031 328.323);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.589 0.132 328.291);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.661 0.125 144.691);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.661 0.125 144.691);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.45 0.174 28.88);
--destructive-foreground: oklch(0.938 0.027 20.029);
--ring: oklch(0.589 0.132 328.291);
--chart-1: oklch(0.589 0.132 328.291);
--chart-2: oklch(0.661 0.125 144.691);
--chart-3: oklch(0.661 0.125 144.691);
--chart-4: oklch(0.681 0.118 144.873);
--chart-5: oklch(0.59 0.144 328.44);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.027 327.979);
--foreground: oklch(0.992 0.002 326.56);
--muted: oklch(0.187 0.016 145.767);
--muted-foreground: oklch(0.724 0.026 146.222);
--popover: oklch(0.125 0.027 327.979);
--popover-foreground: oklch(0.992 0.002 326.56);
--card: oklch(0.139 0.031 328.152);
--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.589 0.132 328.291);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.661 0.125 144.691);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.661 0.125 144.691);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.607 0.228 28.533);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.589 0.132 328.291);
--chart-1: oklch(0.589 0.132 328.291);
--chart-2: oklch(0.661 0.125 144.691);
--chart-3: oklch(0.661 0.125 144.691);
--chart-4: oklch(0.681 0.118 144.873);
--chart-5: oklch(0.59 0.144 328.44);
}