Inferior for shadcn/ui

Inferior is a shadcn/ui theme built around a muted teal primary color (#59a182) with neutral gray accents (#c1b9b9). The light mode uses a neutral background (#f7fcfa). Dark mode keeps the muted teal primary (#59a182) on a teal-tinted background (#050f0b).

Color palette

TokenLightDark
Background
#f7fcfamintcream
#050f0bblack
Foreground
#030d08black
#ffffffwhite
Card
#f7fcfamintcream
#050f0bblack
Card foreground
#030d08black
#ffffffwhite
Popover
#f7fcfamintcream
#050f0bblack
Popover foreground
#030d08black
#ffffffwhite
Primary
#59a182cadetblue
#59a182cadetblue
Primary foreground
#000000black
#000000black
Secondary
#cfcfcflightgrey
#1f1f1fblack
Secondary foreground
#363636darkslategray
#b8b8b8silver
Muted
#e3cecelightgrey
#311c1cblack
Muted foreground
#635454dimgray
#ab9c9cdarkgray
Accent
#c1b9b9silver
#322a2adarkslategray
Accent foreground
#262222black
#cbc2c2silver
Destructive
#612705maroon
#e45b0cchocolate
Destructive foreground
#fac09enavajowhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#59a182cadetblue
#59a182cadetblue

Contrast

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

Light mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button6.85:1AA
Secondary button7.72:1AAA
Muted text4.79:1AA
Accent8.14:1AAA
Destructive7.29:1AAA
Dark mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button6.85:1AA
Secondary button8.34:1AAA
Muted text6.07:1AA
Accent8.01:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 168.564);
  --foreground: oklch(0.144 0.02 168.412);
  --muted: oklch(0.87 0.023 17.605);
  --muted-foreground: oklch(0.462 0.019 17.877);
  --popover: oklch(0.988 0.006 168.564);
  --popover-foreground: oklch(0.144 0.02 168.412);
  --card: oklch(0.988 0.006 168.564);
  --card-foreground: oklch(0.144 0.02 168.412);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.653 0.088 164.076);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.853 0 168.69);
  --secondary-foreground: oklch(0.331 0 180);
  --accent: oklch(0.791 0.009 17.347);
  --accent-foreground: oklch(0.255 0.007 17.587);
  --destructive: oklch(0.351 0.094 45.389);
  --destructive-foreground: oklch(0.851 0.081 51.357);
  --ring: oklch(0.653 0.088 164.076);
  --chart-1: oklch(0.653 0.088 164.076);
  --chart-2: oklch(0.853 0 168.69);
  --chart-3: oklch(0.791 0.009 17.347);
  --chart-4: oklch(0.877 0 180);
  --chart-5: oklch(0.661 0.095 163.6);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.019 166.639);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.253 0.033 19.603);
  --muted-foreground: oklch(0.705 0.017 17.57);
  --popover: oklch(0.158 0.019 166.639);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.019 166.639);
  --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.653 0.088 164.076);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.238 0 161.565);
  --secondary-foreground: oklch(0.781 0 180);
  --accent: oklch(0.294 0.011 17.785);
  --accent-foreground: oklch(0.823 0.01 17.361);
  --destructive: oklch(0.64 0.186 42.981);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.653 0.088 164.076);
  --chart-1: oklch(0.653 0.088 164.076);
  --chart-2: oklch(0.238 0 161.565);
  --chart-3: oklch(0.294 0.011 17.785);
  --chart-4: oklch(0.27 0 180);
  --chart-5: oklch(0.661 0.095 163.6);
}