Micronutrient for shadcn/ui

Micronutrient is a shadcn/ui theme built around a neutral gray primary color (#9d9e9f) with muted light blue accents (#c0cfd8). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the neutral gray primary (#9d9e9f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfewhite
#000000black
Foreground
#02090dblack
#f9fafbghostwhite
Card
#f7fbfdghostwhite
#030303black
Card foreground
#010609black
#fcfdfdwhite
Popover
#fbfdfewhite
#000000black
Popover foreground
#02090dblack
#f9fafbghostwhite
Primary
#9d9e9fdarkgray
#9d9e9fdarkgray
Primary foreground
#050505black
#050505black
Secondary
#d8dfe4gainsboro
#191d1fblack
Secondary foreground
#384851darkslategray
#aeb7bcsilver
Muted
#dce8eflavender
#101c23black
Muted foreground
#49545bdarkslategray
#a4b0b6darkgray
Accent
#c0cfd8lightgrey
#2b353bdarkslategray
Accent foreground
#27363fdarkslategray
#c4ced4lightgrey
Destructive
#711505maroon
#e12a09orangered
Destructive foreground
#fcb8aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9d9e9fdarkgray
#9d9e9fdarkgray

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.51:1AAA
Primary button7.62:1AAA
Secondary button7.06:1AAA
Muted text6.22:1AA
Accent7.81:1AAA
Destructive6.97:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.29:1AAA
Primary button7.62:1AAA
Secondary button8.33:1AAA
Muted text7.80:1AAA
Accent7.82:1AAA
Destructive4.62:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 232.614);
  --foreground: oklch(0.133 0.019 225.734);
  --muted: oklch(0.924 0.015 232.821);
  --muted-foreground: oklch(0.438 0.018 233.216);
  --popover: oklch(0.992 0.002 232.614);
  --popover-foreground: oklch(0.133 0.019 225.734);
  --card: oklch(0.985 0.005 232.649);
  --card-foreground: oklch(0.116 0.016 224.07);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.7 0.002 232.615);
  --primary-foreground: oklch(0.116 0 232.45);
  --secondary: oklch(0.9 0.01 232.74);
  --secondary-foreground: oklch(0.392 0.025 233.661);
  --accent: oklch(0.846 0.021 232.945);
  --accent-foreground: oklch(0.324 0.026 234.008);
  --destructive: oklch(0.358 0.128 32.357);
  --destructive-foreground: oklch(0.841 0.081 30.121);
  --ring: oklch(0.7 0.002 232.615);
  --chart-1: oklch(0.7 0.002 232.615);
  --chart-2: oklch(0.9 0.01 232.74);
  --chart-3: oklch(0.846 0.021 232.945);
  --chart-4: oklch(0.924 0.008 232.698);
  --chart-5: oklch(0.7 0.007 232.722);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.002 232.61);
  --muted: oklch(0.219 0.021 234.442);
  --muted-foreground: oklch(0.75 0.016 232.889);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.985 0.002 232.61);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 232.595);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.7 0.002 232.615);
  --primary-foreground: oklch(0.116 0 232.45);
  --secondary: oklch(0.227 0.007 233.019);
  --secondary-foreground: oklch(0.774 0.013 232.822);
  --accent: oklch(0.323 0.018 233.462);
  --accent-foreground: oklch(0.846 0.014 232.819);
  --destructive: oklch(0.587 0.22 31.652);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.7 0.002 232.615);
  --chart-1: oklch(0.7 0.002 232.615);
  --chart-2: oklch(0.227 0.007 233.019);
  --chart-3: oklch(0.323 0.018 233.462);
  --chart-4: oklch(0.26 0.008 233.055);
  --chart-5: oklch(0.7 0.007 232.722);
}