Inhibitor for shadcn/ui

Inhibitor is a shadcn/ui theme built around a near-white primary color (#fcfcfd) with muted light blue accents (#cbcfd7). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fcfcfd) on a blue-tinted background (#050810).

Color palette

TokenLightDark
Background
#ffffffwhite
#050810black
Foreground
#010204black
#f5f6fawhitesmoke
Card
#fcfcfcsnow
#060b13black
Card foreground
#000000black
#f8f9fcghostwhite
Popover
#fcfcfcsnow
#060b13black
Popover foreground
#000000black
#f8f9fcghostwhite
Primary
#fcfcfdwhite
#fcfcfdwhite
Primary foreground
#435984darkslateblue
#435984darkslateblue
Secondary
#cbcfd7lightgrey
#1c1f27black
Secondary foreground
#31363fdarkslategray
#aeb6c6silver
Muted
#dbdfe6gainsboro
#191d24black
Muted foreground
#525760dimgray
#9fa3addarkgray
Accent
#cbcfd7lightgrey
#1c1f27black
Accent foreground
#31363fdarkslategray
#aeb6c6silver
Destructive
#702905saddlebrown
#f67a3ccoral
Destructive foreground
#fbc7acpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcfcfdwhite
#fcfcfdwhite

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.54:1AAA
Primary button6.82:1AA
Secondary button7.78:1AAA
Muted text5.41:1AA
Accent7.78:1AAA
Destructive6.91:1AA
Dark mode
Text on background18.51:1AAA
Text on card18.75:1AAA
Primary button6.82:1AA
Secondary button8.07:1AAA
Muted text6.70:1AA
Accent8.07:1AAA
Destructive7.76:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.085 0.011 256.743);
  --muted: oklch(0.902 0.011 264.511);
  --muted-foreground: oklch(0.455 0.017 264.396);
  --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.991 0.002 264.546);
  --primary-foreground: oklch(0.464 0.077 263.417);
  --secondary: oklch(0.854 0.012 264.504);
  --secondary-foreground: oklch(0.331 0.018 264.282);
  --accent: oklch(0.854 0.012 264.504);
  --accent-foreground: oklch(0.331 0.018 264.282);
  --destructive: oklch(0.381 0.11 42.167);
  --destructive-foreground: oklch(0.868 0.07 47.895);
  --ring: oklch(0.991 0.002 264.546);
  --chart-1: oklch(0.991 0.002 264.546);
  --chart-2: oklch(0.854 0.012 264.504);
  --chart-3: oklch(0.854 0.012 264.504);
  --chart-4: oklch(0.879 0.01 264.514);
  --chart-5: oklch(0.991 0.002 264.546);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.018 259.302);
  --foreground: oklch(0.974 0.005 264.535);
  --muted: oklch(0.229 0.015 264.21);
  --muted-foreground: oklch(0.716 0.015 264.475);
  --popover: oklch(0.147 0.021 261.501);
  --popover-foreground: oklch(0.983 0.003 264.541);
  --card: oklch(0.147 0.021 261.501);
  --card-foreground: oklch(0.983 0.003 264.541);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.991 0.002 264.546);
  --primary-foreground: oklch(0.464 0.077 263.417);
  --secondary: oklch(0.24 0.015 264.225);
  --secondary-foreground: oklch(0.776 0.024 264.427);
  --accent: oklch(0.24 0.015 264.225);
  --accent-foreground: oklch(0.776 0.024 264.427);
  --destructive: oklch(0.713 0.169 44.87);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.991 0.002 264.546);
  --chart-1: oklch(0.991 0.002 264.546);
  --chart-2: oklch(0.24 0.015 264.225);
  --chart-3: oklch(0.24 0.015 264.225);
  --chart-4: oklch(0.27 0.019 264.197);
  --chart-5: oklch(0.991 0.002 264.546);
}