Millennium for shadcn/ui

Millennium is a shadcn/ui theme built around a muted deep green primary color (#12160e) with muted deep violet accents (#110e16). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#12160e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#080e02black
#fdfdfcwhite
Card
#ffffffwhite
#000000black
Card foreground
#080e02black
#fdfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#080e02black
#fdfdfcwhite
Primary
#12160eblack
#12160eblack
Primary foreground
#aebf97darkgray
#aebf97darkgray
Secondary
#110e16black
#110e16black
Secondary foreground
#a897bfdarkgray
#a897bfdarkgray
Muted
#e5e3e8gainsboro
#19171cblack
Muted foreground
#4f4c52darkslategray
#b0adb3darkgray
Accent
#110e16black
#110e16black
Accent foreground
#a897bfdarkgray
#a897bfdarkgray
Destructive
#620704maroon
#f83c35tomato
Destructive foreground
#fba09dlightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#12160eblack
#12160eblack

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button9.31:1AAA
Secondary button7.15:1AAA
Muted text6.63:1AA
Accent7.15:1AAA
Destructive6.82:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button9.31:1AAA
Secondary button7.15:1AAA
Muted text8.01:1AAA
Accent7.15:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.031 125.216);
  --muted: oklch(0.919 0.007 305.645);
  --muted-foreground: oklch(0.421 0.011 305.395);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.031 125.216);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.151 0.031 125.216);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.194 0.018 127.011);
  --primary-foreground: oklch(0.781 0.059 126.781);
  --secondary: oklch(0.171 0.018 304.29);
  --secondary-foreground: oklch(0.704 0.061 304.581);
  --accent: oklch(0.171 0.018 304.29);
  --accent-foreground: oklch(0.704 0.061 304.581);
  --destructive: oklch(0.318 0.123 29.34);
  --destructive-foreground: oklch(0.796 0.11 21.966);
  --ring: oklch(0.194 0.018 127.011);
  --chart-1: oklch(0.194 0.018 127.011);
  --chart-2: oklch(0.171 0.018 304.29);
  --chart-3: oklch(0.171 0.018 304.29);
  --chart-4: oklch(0.201 0.025 304.045);
  --chart-5: oklch(0.195 0.02 127.163);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 125.761);
  --muted: oklch(0.21 0.009 305.143);
  --muted-foreground: oklch(0.751 0.009 305.572);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 125.761);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.002 125.761);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.194 0.018 127.011);
  --primary-foreground: oklch(0.781 0.059 126.781);
  --secondary: oklch(0.171 0.018 304.29);
  --secondary-foreground: oklch(0.704 0.061 304.581);
  --accent: oklch(0.171 0.018 304.29);
  --accent-foreground: oklch(0.704 0.061 304.581);
  --destructive: oklch(0.643 0.224 27.677);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.194 0.018 127.011);
  --chart-1: oklch(0.194 0.018 127.011);
  --chart-2: oklch(0.171 0.018 304.29);
  --chart-3: oklch(0.171 0.018 304.29);
  --chart-4: oklch(0.201 0.025 304.045);
  --chart-5: oklch(0.195 0.02 127.163);
}