Inferior for shadcn/ui

Inferior is a shadcn/ui theme built around a green primary color (#498230) with green accents (#308241). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the green primary (#498230) on a green-tinted background (#060b05).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#060b05black
Foreground
#000000black
#f7f9f6whitesmoke
Card
#f6fcf3whitesmoke
#090e06black
Card foreground
#000000black
#f9fbf9mintcream
Popover
#f9fdf7mintcream
#060b05black
Popover foreground
#000000black
#f7f9f6whitesmoke
Primary
#498230darkolivegreen
#498230darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#728230olivedrab
#728230olivedrab
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebece4beige
#191b13black
Muted foreground
#616260dimgray
#9f9f9ddarkgray
Accent
#308241seagreen
#308241seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#672504maroon
#f77636tomato
Destructive foreground
#fbc0a2navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#498230darkolivegreen
#498230darkolivegreen

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card20.10:1AAA
Primary button4.63:1AA
Secondary button4.22:1AA Large
Muted text5.15:1AA
Accent4.76:1AA
Destructive7.14:1AAA
Dark mode
Text on background18.76:1AAA
Text on card18.73:1AAA
Primary button4.63:1AA
Secondary button4.22:1AA Large
Muted text6.54:1AA
Accent4.76:1AA
Destructive7.60:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 136.056);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.011 115.795);
  --muted-foreground: oklch(0.495 0.003 115.692);
  --popover: oklch(0.989 0.009 136.056);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.014 136.073);
  --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.549 0.13 137.496);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.577 0.109 119.516);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.541 0.127 147.447);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.359 0.103 42.415);
  --destructive-foreground: oklch(0.853 0.08 47.767);
  --ring: oklch(0.549 0.13 137.496);
  --chart-1: oklch(0.549 0.13 137.496);
  --chart-2: oklch(0.577 0.109 119.516);
  --chart-3: oklch(0.541 0.127 147.447);
  --chart-4: oklch(0.612 0.116 119.55);
  --chart-5: oklch(0.556 0.137 137.626);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.017 134.852);
  --foreground: oklch(0.98 0.006 136.042);
  --muted: oklch(0.218 0.016 116.909);
  --muted-foreground: oklch(0.702 0.003 115.652);
  --popover: oklch(0.14 0.017 134.852);
  --popover-foreground: oklch(0.98 0.006 136.042);
  --card: oklch(0.156 0.02 135.427);
  --card-foreground: oklch(0.986 0.004 136.035);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.549 0.13 137.496);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.577 0.109 119.516);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.541 0.127 147.447);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.708 0.175 44.467);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.549 0.13 137.496);
  --chart-1: oklch(0.549 0.13 137.496);
  --chart-2: oklch(0.577 0.109 119.516);
  --chart-3: oklch(0.541 0.127 147.447);
  --chart-4: oklch(0.612 0.116 119.55);
  --chart-5: oklch(0.556 0.137 137.626);
}