Prime for shadcn/ui

Prime is a shadcn/ui theme built around a muted green primary color (#b6c0b5) with muted purple accents (#bfb5c0). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted green primary (#b6c0b5) on a green-tinted background (#040c03).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#040c03black
Foreground
#010401black
#f9fbf9mintcream
Card
#f9fcf8mintcream
#061004black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fcfdfcwhite
#040c03black
Popover foreground
#010401black
#f9fbf9mintcream
Primary
#b6c0b5silver
#b6c0b5silver
Primary foreground
#1f241eblack
#1f241eblack
Secondary
#bfb5c0silver
#bfb5c0silver
Secondary foreground
#231e24black
#231e24black
Muted
#efebefwhitesmoke
#141014black
Muted foreground
#59495bdimgray
#b5a4b6darkgray
Accent
#bfb5c0silver
#bfb5c0silver
Accent foreground
#231e24black
#231e24black
Destructive
#7a2e06saddlebrown
#f46a1fchocolate
Destructive foreground
#fcceb6peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6c0b5silver
#b6c0b5silver

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.23:1AAA
Primary button8.39:1AAA
Secondary button8.21:1AAA
Muted text7.03:1AAA
Accent8.21:1AAA
Destructive6.58:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.01:1AAA
Primary button8.39:1AAA
Secondary button8.21:1AAA
Muted text8.05:1AAA
Accent8.21:1AAA
Destructive6.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 142.616);
  --foreground: oklch(0.098 0.018 140.905);
  --muted: oklch(0.944 0.008 322.659);
  --muted-foreground: oklch(0.427 0.036 322.95);
  --popover: oklch(0.993 0.003 142.616);
  --popover-foreground: oklch(0.098 0.018 140.905);
  --card: oklch(0.987 0.005 142.605);
  --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.796 0.019 142.531);
  --primary-foreground: oklch(0.253 0.012 142.432);
  --secondary: oklch(0.783 0.019 322.723);
  --secondary-foreground: oklch(0.245 0.012 322.823);
  --accent: oklch(0.783 0.019 322.723);
  --accent-foreground: oklch(0.245 0.012 322.823);
  --destructive: oklch(0.406 0.115 43.118);
  --destructive-foreground: oklch(0.885 0.061 49.847);
  --ring: oklch(0.796 0.019 142.531);
  --chart-1: oklch(0.796 0.019 142.531);
  --chart-2: oklch(0.783 0.019 322.723);
  --chart-3: oklch(0.783 0.019 322.723);
  --chart-4: oklch(0.808 0.017 322.709);
  --chart-5: oklch(0.798 0.026 142.495);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.026 140.934);
  --foreground: oklch(0.986 0.003 142.616);
  --muted: oklch(0.178 0.012 322.879);
  --muted-foreground: oklch(0.739 0.031 322.794);
  --popover: oklch(0.141 0.026 140.934);
  --popover-foreground: oklch(0.986 0.003 142.616);
  --card: oklch(0.158 0.031 141.097);
  --card-foreground: oklch(0.993 0.001 142.621);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.796 0.019 142.531);
  --primary-foreground: oklch(0.253 0.012 142.432);
  --secondary: oklch(0.783 0.019 322.723);
  --secondary-foreground: oklch(0.245 0.012 322.823);
  --accent: oklch(0.783 0.019 322.723);
  --accent-foreground: oklch(0.245 0.012 322.823);
  --destructive: oklch(0.686 0.188 43.814);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.796 0.019 142.531);
  --chart-1: oklch(0.796 0.019 142.531);
  --chart-2: oklch(0.783 0.019 322.723);
  --chart-3: oklch(0.783 0.019 322.723);
  --chart-4: oklch(0.808 0.017 322.709);
  --chart-5: oklch(0.798 0.026 142.495);
}