Metabolite for shadcn/ui

Metabolite is a shadcn/ui theme built around a near-white primary color (#eeedec) with near-white accents (#eeedec). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#eeedec) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fcf8f8snow
#040202black
Foreground
#090201black
#ffffffwhite
Card
#fbf5f4whitesmoke
#070403black
Card foreground
#050101black
#ffffffwhite
Popover
#fcf8f8snow
#040202black
Popover foreground
#090201black
#ffffffwhite
Primary
#eeedeclinen
#eeedeclinen
Primary foreground
#585150dimgray
#585150dimgray
Secondary
#eeecedwhitesmoke
#eeecedwhitesmoke
Secondary foreground
#585053dimgray
#585053dimgray
Muted
#eadce1gainsboro
#23151ablack
Muted foreground
#4f4a4cdarkslategray
#b5b0b2darkgray
Accent
#eeedeclinen
#eeedeclinen
Accent foreground
#585550dimgray
#585550dimgray
Destructive
#dc5304chocolate
#eb5905orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eeedeclinen
#eeedeclinen

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.23:1AAA
Primary button6.61:1AA
Secondary button6.65:1AA
Muted text6.55:1AA
Accent6.36:1AA
Destructive3.96:1AA Large
Dark mode
Text on background20.72:1AAA
Text on card20.45:1AAA
Primary button6.61:1AA
Secondary button6.65:1AA
Muted text8.21:1AAA
Accent6.36:1AA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 29.483);
  --foreground: oklch(0.106 0.022 39.774);
  --muted: oklch(0.907 0.016 354.077);
  --muted-foreground: oklch(0.415 0.007 354.03);
  --popover: oklch(0.983 0.004 29.483);
  --popover-foreground: oklch(0.106 0.022 39.774);
  --card: oklch(0.974 0.007 29.491);
  --card-foreground: oklch(0.084 0.017 39.774);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.946 0.002 29.474);
  --primary-foreground: oklch(0.442 0.01 29.556);
  --secondary: oklch(0.945 0.002 353.638);
  --secondary-foreground: oklch(0.44 0.012 354.347);
  --accent: oklch(0.948 0.002 83.056);
  --accent-foreground: oklch(0.452 0.01 83.063);
  --destructive: oklch(0.618 0.185 41.984);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.946 0.002 29.474);
  --chart-1: oklch(0.946 0.002 29.474);
  --chart-2: oklch(0.945 0.002 353.638);
  --chart-3: oklch(0.948 0.002 83.056);
  --chart-4: oklch(0.969 0.001 353.609);
  --chart-5: oklch(0.945 0.003 29.477);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.008 33.135);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.217 0.023 356.52);
  --muted-foreground: oklch(0.762 0.006 353.788);
  --popover: oklch(0.088 0.008 33.135);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.01 33.135);
  --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.946 0.002 29.474);
  --primary-foreground: oklch(0.442 0.01 29.556);
  --secondary: oklch(0.945 0.002 353.638);
  --secondary-foreground: oklch(0.44 0.012 354.347);
  --accent: oklch(0.948 0.002 83.056);
  --accent-foreground: oklch(0.452 0.01 83.063);
  --destructive: oklch(0.649 0.195 41.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.946 0.002 29.474);
  --chart-1: oklch(0.946 0.002 29.474);
  --chart-2: oklch(0.945 0.002 353.638);
  --chart-3: oklch(0.948 0.002 83.056);
  --chart-4: oklch(0.969 0.001 353.609);
  --chart-5: oklch(0.945 0.003 29.477);
}