Impartial is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#d3caca). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#0b0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0b0505black |
| Foreground | #0c0303black | #fdfcfcsnow |
| Card | #fefbfbsnow | #0b0505black |
| Card foreground | #0c0303black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #0b0505black |
| Popover foreground | #0c0303black | #fdfcfcsnow |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #d3cacalightgrey | #171717black |
| Secondary foreground | #3a3131darkslategray | #b0b0b0darkgray |
| Muted | #e8dedegainsboro | #211717black |
| Muted foreground | #564343darkslategray | #bca9a9darkgray |
| Accent | #d3cacalightgrey | #171717black |
| Accent foreground | #3a3131darkslategray | #b0b0b0darkgray |
| Destructive | #da0a07red | #f8110dred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000000black | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 5.22:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Impartial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 17.202);
--foreground: oklch(0.118 0.022 20.823);
--muted: oklch(0.908 0.012 17.372);
--muted-foreground: oklch(0.402 0.028 18.365);
--popover: oklch(0.991 0.003 17.202);
--popover-foreground: oklch(0.118 0.022 20.823);
--card: oklch(0.991 0.003 17.202);
--card-foreground: oklch(0.118 0.022 20.823);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.847 0.01 17.348);
--secondary-foreground: oklch(0.323 0.014 17.899);
--accent: oklch(0.847 0.01 17.348);
--accent-foreground: oklch(0.323 0.014 17.899);
--destructive: oklch(0.56 0.226 29.151);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.847 0.01 17.348);
--chart-3: oklch(0.847 0.01 17.348);
--chart-4: oklch(0.871 0.008 17.312);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.014 19.188);
--foreground: oklch(0.992 0.001 17.167);
--muted: oklch(0.217 0.017 18.583);
--muted-foreground: oklch(0.75 0.023 17.679);
--popover: oklch(0.123 0.014 19.188);
--popover-foreground: oklch(0.992 0.001 17.167);
--card: oklch(0.123 0.014 19.188);
--card-foreground: oklch(0.992 0.001 17.167);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.204 0 180);
--secondary-foreground: oklch(0.757 0 180);
--accent: oklch(0.204 0 180);
--accent-foreground: oklch(0.757 0 180);
--destructive: oklch(0.617 0.248 29.063);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.204 0 180);
--chart-3: oklch(0.204 0 180);
--chart-4: oklch(0.238 0 161.565);
--chart-5: oklch(0 0 0);
}