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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 4.35:1 | AA Large |
| Muted text | 7.96:1 | AAA |
| Accent | 4.35:1 | AA Large |
| Destructive | 6.50:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 4.35:1 | AA Large |
| Muted text | 8.37:1 | AAA |
| Accent | 4.35:1 | AA Large |
| Destructive | 4.32:1 | AA Large |
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);
}