Millennium for shadcn/ui

Millennium is a shadcn/ui theme built around a muted green primary color (#819970) with muted violet accents (#887099). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the muted green primary (#819970) on a neutral background (#050704).

Color palette

TokenLightDark
Background
#fcfdfbsnow
#050704black
Foreground
#000000black
#fafbf9snow
Card
#fafcf8snow
#070a05black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fcfdfbsnow
#050704black
Popover foreground
#000000black
#fafbf9snow
Primary
#819970gray
#819970gray
Primary foreground
#000000black
#000000black
Secondary
#887099lightslategray
#887099lightslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e6e3e8gainsboro
#1a171cblack
Muted foreground
#493d51darkslategray
#b9aec2silver
Accent
#887099lightslategray
#887099lightslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a90f0afirebrick
#f1160ered
Destructive foreground
#fee8e7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#819970gray
#819970gray

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.31:1AAA
Primary button6.75:1AA
Secondary button4.35:1AA Large
Muted text7.96:1AAA
Accent4.35:1AA Large
Destructive6.50:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.52:1AAA
Primary button6.75:1AA
Secondary button4.35:1AA Large
Muted text8.37:1AAA
Accent4.35:1AA Large
Destructive4.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 131.748);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.919 0.008 311.652);
  --muted-foreground: oklch(0.382 0.037 310.951);
  --popover: oklch(0.994 0.003 131.748);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.006 131.772);
  --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.654 0.066 132.609);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.583 0.068 310.774);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.583 0.068 310.774);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.466 0.184 29.113);
  --destructive-foreground: oklch(0.947 0.024 19.972);
  --ring: oklch(0.654 0.066 132.609);
  --chart-1: oklch(0.654 0.066 132.609);
  --chart-2: oklch(0.583 0.068 310.774);
  --chart-3: oklch(0.583 0.068 310.774);
  --chart-4: oklch(0.61 0.063 310.885);
  --chart-5: oklch(0.662 0.077 132.767);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.011 130.94);
  --foreground: oklch(0.987 0.004 131.757);
  --muted: oklch(0.21 0.012 311.265);
  --muted-foreground: oklch(0.766 0.031 311.4);
  --popover: oklch(0.121 0.011 130.94);
  --popover-foreground: oklch(0.987 0.004 131.757);
  --card: oklch(0.139 0.013 130.94);
  --card-foreground: oklch(0.993 0.002 131.741);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.654 0.066 132.609);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.583 0.068 310.774);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.583 0.068 310.774);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.607 0.242 29.225);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.654 0.066 132.609);
  --chart-1: oklch(0.654 0.066 132.609);
  --chart-2: oklch(0.583 0.068 310.774);
  --chart-3: oklch(0.583 0.068 310.774);
  --chart-4: oklch(0.61 0.063 310.885);
  --chart-5: oklch(0.662 0.077 132.767);
}