Impartial is a shadcn/ui theme built around a light yellow primary color (#f9f5dc) with light blue accents (#dce0f9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#f9f5dc) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040401black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f9f5dcbeige | #f9f5dcbeige |
| Primary foreground | #342e09black | #342e09black |
| Secondary | #dce0f9lavender | #dce0f9lavender |
| Secondary foreground | #18288bmidnightblue | #18288bmidnightblue |
| Muted | #d8dbe8gainsboro | #171927black |
| Muted foreground | #575860dimgray | #9fa0a8darkgray |
| Accent | #dce0f9lavender | #dce0f9lavender |
| Accent foreground | #18288bmidnightblue | #18288bmidnightblue |
| Destructive | #803205saddlebrown | #f87d35coral |
| Destructive foreground | #fdd2bapeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9f5dcbeige | #f9f5dcbeige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 12.41:1 | AAA |
| Secondary button | 9.38:1 | AAA |
| Muted text | 5.11:1 | AA |
| Accent | 9.38:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 12.41:1 | AAA |
| Secondary button | 9.38:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 9.38:1 | AAA |
| Destructive | 7.94:1 | AAA |
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.102 0.013 102.851);
--muted: oklch(0.893 0.019 279.014);
--muted-foreground: oklch(0.464 0.013 278.908);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.967 0.033 99.814);
--primary-foreground: oklch(0.3 0.054 100.386);
--secondary: oklch(0.912 0.034 278.753);
--secondary-foreground: oklch(0.342 0.163 268.433);
--accent: oklch(0.912 0.034 278.753);
--accent-foreground: oklch(0.342 0.163 268.433);
--destructive: oklch(0.421 0.119 44.004);
--destructive-foreground: oklch(0.895 0.058 51.761);
--ring: oklch(0.967 0.033 99.814);
--chart-1: oklch(0.967 0.033 99.814);
--chart-2: oklch(0.912 0.034 278.753);
--chart-3: oklch(0.912 0.034 278.753);
--chart-4: oklch(0.945 0.021 278.998);
--chart-5: oklch(0.968 0.034 99.832);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 99.35);
--muted: oklch(0.217 0.027 277.13);
--muted-foreground: oklch(0.707 0.012 279.09);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.967 0.033 99.814);
--primary-foreground: oklch(0.3 0.054 100.386);
--secondary: oklch(0.912 0.034 278.753);
--secondary-foreground: oklch(0.342 0.163 268.433);
--accent: oklch(0.912 0.034 278.753);
--accent-foreground: oklch(0.342 0.163 268.433);
--destructive: oklch(0.719 0.171 47.248);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.967 0.033 99.814);
--chart-1: oklch(0.967 0.033 99.814);
--chart-2: oklch(0.912 0.034 278.753);
--chart-3: oklch(0.912 0.034 278.753);
--chart-4: oklch(0.945 0.021 278.998);
--chart-5: oklch(0.968 0.034 99.832);
}