Ill for shadcn/ui

Ill is a shadcn/ui theme built around a yellow primary color (#927d20) with purple accents (#7d2092). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the yellow primary (#927d20) on a yellow-tinted background (#0c0a03).

Color palette

TokenLightDark
Background
#fcfbf8snow
#0c0a03black
Foreground
#090702black
#ffffffwhite
Card
#fcfbf8snow
#0c0a03black
Card foreground
#090702black
#ffffffwhite
Popover
#fcfbf8snow
#0c0a03black
Popover foreground
#090702black
#ffffffwhite
Primary
#927d20olive
#927d20olive
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#20927ddarkcyan
#20927ddarkcyan
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ddeeeblavender
#11221fblack
Muted foreground
#4e5f5cdimgray
#a0b1aedarkgray
Accent
#7d2092rebeccapurple
#7d2092rebeccapurple
Accent foreground
#f7eafalavenderblush
#f7eafalavenderblush
Destructive
#8d0902darkred
#fb2318orangered
Destructive foreground
#fec6c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#927d20olive
#927d20olive

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button4.03:1AA Large
Secondary button3.82:1AA Large
Muted text5.63:1AA
Accent7.23:1AAA
Destructive6.49:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button4.03:1AA Large
Secondary button3.82:1AA Large
Muted text7.35:1AAA
Accent7.23:1AAA
Destructive3.90:1AA Large

CSS variables

Paste this into your globals.css to use Ill in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 96.225);
  --foreground: oklch(0.129 0.019 100.995);
  --muted: oklch(0.936 0.019 183.752);
  --muted-foreground: oklch(0.471 0.022 183.022);
  --popover: oklch(0.988 0.005 96.225);
  --popover-foreground: oklch(0.129 0.019 100.995);
  --card: oklch(0.988 0.005 96.225);
  --card-foreground: oklch(0.129 0.019 100.995);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.594 0.111 95.783);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.595 0.102 176.9);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.446 0.185 319.394);
  --accent-foreground: oklch(0.953 0.026 320.016);
  --destructive: oklch(0.407 0.162 29.836);
  --destructive-foreground: oklch(0.875 0.065 21.956);
  --ring: oklch(0.594 0.111 95.783);
  --chart-1: oklch(0.594 0.111 95.783);
  --chart-2: oklch(0.595 0.102 176.9);
  --chart-3: oklch(0.446 0.185 319.394);
  --chart-4: oklch(0.632 0.109 176.827);
  --chart-5: oklch(0.6 0.114 95.58);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.018 99.751);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.237 0.025 181.079);
  --muted-foreground: oklch(0.746 0.02 183.589);
  --popover: oklch(0.146 0.018 99.751);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.018 99.751);
  --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.594 0.111 95.783);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.595 0.102 176.9);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.446 0.185 319.394);
  --accent-foreground: oklch(0.953 0.026 320.016);
  --destructive: oklch(0.632 0.245 29.342);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.594 0.111 95.783);
  --chart-1: oklch(0.594 0.111 95.783);
  --chart-2: oklch(0.595 0.102 176.9);
  --chart-3: oklch(0.446 0.185 319.394);
  --chart-4: oklch(0.632 0.109 176.827);
  --chart-5: oklch(0.6 0.114 95.58);
}