Impartial is a shadcn/ui theme built around a vivid deep yellow primary color (#766f0f) with vivid deep purple accents (#6f0f76). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#766f0f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #100f04black | #fafaf5whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #0c0b03black | #fcfbf8snow |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #0c0b03black | #fcfbf8snow |
| Primary | #766f0folive | #766f0folive |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #0f766fteal | #0f766fteal |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #edf3f2whitesmoke | #0c1212black |
| Muted foreground | #3c4443darkslategray | #bbc3c3silver |
| Accent | #6f0f76purple | #6f0f76purple |
| Accent foreground | #f3bff7thistle | #f3bff7thistle |
| Destructive | #c7120ffirebrick | #e81511red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #766f0folive | #766f0folive |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.22:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 5.17:1 | AA |
| Secondary button | 5.46:1 | AA |
| Muted text | 8.88:1 | AAA |
| Accent | 6.78:1 | AA |
| Destructive | 5.95:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 5.17:1 | AA |
| Secondary button | 5.46:1 | AA |
| Muted text | 10.52:1 | AAA |
| Accent | 6.78:1 | AA |
| Destructive | 4.60:1 | AA |
Paste this into your globals.css to use Impartial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.166 0.022 105.369);
--muted: oklch(0.958 0.006 192.292);
--muted-foreground: oklch(0.378 0.01 191.867);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.149 0.02 105.707);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.149 0.02 105.707);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.532 0.108 105.013);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.511 0.086 187.54);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.392 0.171 325.021);
--accent-foreground: oklch(0.87 0.094 324.169);
--destructive: oklch(0.527 0.208 28.812);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.532 0.108 105.013);
--chart-1: oklch(0.532 0.108 105.013);
--chart-2: oklch(0.511 0.086 187.54);
--chart-3: oklch(0.392 0.171 325.021);
--chart-4: oklch(0.553 0.093 187.476);
--chart-5: oklch(0.538 0.11 104.959);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.006 103.213);
--muted: oklch(0.177 0.009 191.35);
--muted-foreground: oklch(0.811 0.008 192.209);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.988 0.004 103.177);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.988 0.004 103.177);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.532 0.108 105.013);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.511 0.086 187.54);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.392 0.171 325.021);
--accent-foreground: oklch(0.87 0.094 324.169);
--destructive: oklch(0.591 0.235 28.882);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.532 0.108 105.013);
--chart-1: oklch(0.532 0.108 105.013);
--chart-2: oklch(0.511 0.086 187.54);
--chart-3: oklch(0.392 0.171 325.021);
--chart-4: oklch(0.553 0.093 187.476);
--chart-5: oklch(0.538 0.11 104.959);
}