Inferior for shadcn/ui

Inferior is a shadcn/ui theme built around a muted light pink primary color (#f9f5f8) with muted light green accents (#f5f9f7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#f9f5f8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#f9f5f8whitesmoke
#f9f5f8whitesmoke
Primary foreground
#794467dimgray
#794467dimgray
Secondary
#f5f9f7whitesmoke
#f5f9f7whitesmoke
Secondary foreground
#1f3727darkslategray
#1f3727darkslategray
Muted
#eef1efwhitesmoke
#0e110fblack
Muted foreground
#404f45darkslategray
#b0bfb5silver
Accent
#f5f9f7whitesmoke
#f5f9f7whitesmoke
Accent foreground
#1f3727darkslategray
#1f3727darkslategray
Destructive
#8d2907saddlebrown
#e4420corangered
Destructive foreground
#fcd6cabisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9f5f8whitesmoke
#f9f5f8whitesmoke

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.87:1AA
Secondary button12.14:1AAA
Muted text7.64:1AAA
Accent12.14:1AAA
Destructive6.39:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.87:1AA
Secondary button12.14:1AAA
Muted text9.92:1AAA
Accent12.14:1AAA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.956 0.005 157.166);
  --muted-foreground: oklch(0.41 0.024 156.013);
  --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.975 0.006 337.387);
  --primary-foreground: oklch(0.462 0.087 340.778);
  --secondary: oklch(0.98 0.006 157.143);
  --secondary-foreground: oklch(0.313 0.042 154.095);
  --accent: oklch(0.98 0.006 157.143);
  --accent-foreground: oklch(0.313 0.042 154.095);
  --destructive: oklch(0.432 0.14 36.421);
  --destructive-foreground: oklch(0.906 0.046 39.283);
  --ring: oklch(0.975 0.006 337.387);
  --chart-1: oklch(0.975 0.006 337.387);
  --chart-2: oklch(0.98 0.006 157.143);
  --chart-3: oklch(0.98 0.006 157.143);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.975 0.007 337.4);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.173 0.007 156.407);
  --muted-foreground: oklch(0.79 0.021 156.725);
  --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.975 0.006 337.387);
  --primary-foreground: oklch(0.462 0.087 340.778);
  --secondary: oklch(0.98 0.006 157.143);
  --secondary-foreground: oklch(0.313 0.042 154.095);
  --accent: oklch(0.98 0.006 157.143);
  --accent-foreground: oklch(0.313 0.042 154.095);
  --destructive: oklch(0.611 0.206 35.716);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.975 0.006 337.387);
  --chart-1: oklch(0.975 0.006 337.387);
  --chart-2: oklch(0.98 0.006 157.143);
  --chart-3: oklch(0.98 0.006 157.143);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.975 0.007 337.4);
}