Impartial is a shadcn/ui theme built around a light orange primary color (#ebddd5) with light yellow accents (#ebe8d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light orange primary (#ebddd5) on an orange-tinted background (#0e0907).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0907black |
| Foreground | #100904black | #fafaf9snow |
| Card | #ffffffwhite | #0e0907black |
| Card foreground | #100904black | #fafaf9snow |
| Popover | #ffffffwhite | #0e0907black |
| Popover foreground | #100904black | #fafaf9snow |
| Primary | #ebddd5gainsboro | #ebddd5gainsboro |
| Primary foreground | #61412edarkolivegreen | #61412edarkolivegreen |
| Secondary | #ebd5d8gainsboro | #ebd5d8gainsboro |
| Secondary foreground | #612e35saddlebrown | #612e35saddlebrown |
| Muted | #f3f1f2whitesmoke | #0e0c0cblack |
| Muted foreground | #5f5455dimgray | #aba0a2darkgray |
| Accent | #ebe8d5antiquewhite | #ebe8d5antiquewhite |
| Accent foreground | #1c1a0dblack | #1c1a0dblack |
| Destructive | #cd0d0afirebrick | #f5312ecrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebddd5gainsboro | #ebddd5gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 14.22:1 | AAA |
| Destructive | 5.76:1 | AA |
| Text on background | 18.94:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 14.22:1 | AAA |
| Destructive | 3.91:1 | AA Large |
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.147 0.018 57.917);
--muted: oklch(0.961 0.002 7.798);
--muted-foreground: oklch(0.456 0.014 8.508);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.147 0.018 57.917);
--card: oklch(1 0 180);
--card-foreground: oklch(0.147 0.018 57.917);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.908 0.019 52.304);
--primary-foreground: oklch(0.406 0.054 50.733);
--secondary: oklch(0.893 0.025 8.423);
--secondary-foreground: oklch(0.371 0.075 13.032);
--accent: oklch(0.93 0.026 99.731);
--accent-foreground: oklch(0.215 0.023 100.57);
--destructive: oklch(0.535 0.215 29.024);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.908 0.019 52.304);
--chart-1: oklch(0.908 0.019 52.304);
--chart-2: oklch(0.893 0.025 8.423);
--chart-3: oklch(0.93 0.026 99.731);
--chart-4: oklch(0.92 0.018 8.235);
--chart-5: oklch(0.908 0.02 52.282);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.01 55.128);
--foreground: oklch(0.985 0.001 52.567);
--muted: oklch(0.156 0.003 8.231);
--muted-foreground: oklch(0.717 0.013 8.179);
--popover: oklch(0.146 0.01 55.128);
--popover-foreground: oklch(0.985 0.001 52.567);
--card: oklch(0.146 0.01 55.128);
--card-foreground: oklch(0.985 0.001 52.567);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.908 0.019 52.304);
--primary-foreground: oklch(0.406 0.054 50.733);
--secondary: oklch(0.893 0.025 8.423);
--secondary-foreground: oklch(0.371 0.075 13.032);
--accent: oklch(0.93 0.026 99.731);
--accent-foreground: oklch(0.215 0.023 100.57);
--destructive: oklch(0.63 0.23 27.613);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.908 0.019 52.304);
--chart-1: oklch(0.908 0.019 52.304);
--chart-2: oklch(0.893 0.025 8.423);
--chart-3: oklch(0.93 0.026 99.731);
--chart-4: oklch(0.92 0.018 8.235);
--chart-5: oklch(0.908 0.02 52.282);
}