Impartial for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button6.90:1AA
Secondary button7.74:1AAA
Muted text6.48:1AA
Accent14.22:1AAA
Destructive5.76:1AA
Dark mode
Text on background18.94:1AAA
Text on card18.94:1AAA
Primary button6.90:1AA
Secondary button7.74:1AAA
Muted text7.70:1AAA
Accent14.22:1AAA
Destructive3.91:1AA Large

CSS variables

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);
}