Millennium is a shadcn/ui theme built around a neutral gray primary color (#675b62) with neutral gray accents (#5b675f). The light mode uses a neutral background (#fefbfd). Dark mode keeps the neutral gray primary (#675b62) on a pink-tinted background (#10050c).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #10050cblack |
| Foreground | #000000black | #f9f6f8whitesmoke |
| Card | #fdf7fbsnow | #14060fblack |
| Card foreground | #000000black | #fbf9fasnow |
| Popover | #fefbfdsnow | #10050cblack |
| Popover foreground | #000000black | #f9f6f8whitesmoke |
| Primary | #675b62dimgray | #675b62dimgray |
| Primary foreground | #fafafasnow | #fafafasnow |
| Secondary | #5b675fdimgray | #5b675fdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d4e3d9gainsboro | #1c2b22darkslategray |
| Muted foreground | #5f6360dimgray | #9ca09edarkgray |
| Accent | #5b675fdimgray | #5b675fdimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #e24603orangered | #fc6a2ctomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #675b62dimgray | #675b62dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 5.93:1 | AA |
| Muted text | 4.58:1 | AA |
| Accent | 5.93:1 | AA |
| Destructive | 4.10:1 | AA Large |
| Text on background | 18.68:1 | AAA |
| Text on card | 18.87:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 5.93:1 | AA |
| Muted text | 5.58:1 | AA |
| Accent | 5.93:1 | AA |
| Destructive | 7.24:1 | AAA |
Paste this into your globals.css to use Millennium in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 338.809);
--foreground: oklch(0 0 0);
--muted: oklch(0.901 0.02 158.219);
--muted-foreground: oklch(0.495 0.006 158.448);
--popover: oklch(0.991 0.004 338.809);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.008 338.899);
--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.485 0.019 339.529);
--primary-foreground: oklch(0.984 0.001 338.737);
--secondary: oklch(0.5 0.018 157.902);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.5 0.018 157.902);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.613 0.202 37.482);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.485 0.019 339.529);
--chart-1: oklch(0.485 0.019 339.529);
--chart-2: oklch(0.5 0.018 157.902);
--chart-3: oklch(0.5 0.018 157.902);
--chart-4: oklch(0.528 0.02 157.895);
--chart-5: oklch(0.482 0.028 339.931);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.027 340.83);
--foreground: oklch(0.975 0.004 338.815);
--muted: oklch(0.273 0.027 156.361);
--muted-foreground: oklch(0.702 0.006 158.544);
--popover: oklch(0.137 0.027 340.83);
--popover-foreground: oklch(0.975 0.004 338.815);
--card: oklch(0.149 0.03 341.959);
--card-foreground: oklch(0.984 0.003 338.782);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.485 0.019 339.529);
--primary-foreground: oklch(0.984 0.001 338.737);
--secondary: oklch(0.5 0.018 157.902);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.5 0.018 157.902);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.698 0.192 41.068);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.485 0.019 339.529);
--chart-1: oklch(0.485 0.019 339.529);
--chart-2: oklch(0.5 0.018 157.902);
--chart-3: oklch(0.5 0.018 157.902);
--chart-4: oklch(0.528 0.02 157.895);
--chart-5: oklch(0.482 0.028 339.931);
}