Millennium is a shadcn/ui theme built around an indigo primary color (#747ddc) with yellow accents (#dcd474). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the indigo primary (#747ddc) on an indigo-tinted background (#06060f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #06060fblack |
| Foreground | #040510black | #f7f7f8whitesmoke |
| Card | #f8f8fcghostwhite | #070812black |
| Card foreground | #03040cblack | #f9f9faghostwhite |
| Popover | #f8f8fcghostwhite | #070812black |
| Popover foreground | #03040cblack | #f9f9faghostwhite |
| Primary | #747ddcmediumslateblue | #747ddcmediumslateblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #dcd474burlywood | #dcd474burlywood |
| Secondary foreground | #181706black | #181706black |
| Muted | #f2f1e8linen | #17160dblack |
| Muted foreground | #5a5a53dimgray | #acaba5darkgray |
| Accent | #dcd474burlywood | #dcd474burlywood |
| Accent foreground | #181706black | #181706black |
| Destructive | #a81b05firebrick | #df2407orangered |
| Destructive foreground | #fee5e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #747ddcmediumslateblue | #747ddcmediumslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 5.71:1 | AA |
| Secondary button | 11.76:1 | AAA |
| Muted text | 6.14:1 | AA |
| Accent | 11.76:1 | AAA |
| Destructive | 6.19:1 | AA |
| Text on background | 18.82:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 5.71:1 | AA |
| Secondary button | 11.76:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 11.76:1 | AAA |
| Destructive | 4.79:1 | AA |
Paste this into your globals.css to use Millennium in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 282.166);
--foreground: oklch(0.123 0.027 276.192);
--muted: oklch(0.957 0.012 102.418);
--muted-foreground: oklch(0.465 0.01 102.56);
--popover: oklch(0.98 0.005 282.119);
--popover-foreground: oklch(0.111 0.023 276.111);
--card: oklch(0.98 0.005 282.119);
--card-foreground: oklch(0.111 0.023 276.111);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.626 0.143 277.516);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.856 0.118 103.984);
--secondary-foreground: oklch(0.201 0.03 104.221);
--accent: oklch(0.856 0.118 103.984);
--accent-foreground: oklch(0.201 0.03 104.221);
--destructive: oklch(0.471 0.178 31.342);
--destructive-foreground: oklch(0.942 0.028 28.11);
--ring: oklch(0.626 0.143 277.516);
--chart-1: oklch(0.626 0.143 277.516);
--chart-2: oklch(0.856 0.118 103.984);
--chart-3: oklch(0.856 0.118 103.984);
--chart-4: oklch(0.868 0.109 103.885);
--chart-5: oklch(0.622 0.15 277.191);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.02 278.128);
--foreground: oklch(0.976 0.002 282.18);
--muted: oklch(0.198 0.017 103.478);
--muted-foreground: oklch(0.74 0.009 102.409);
--popover: oklch(0.139 0.023 278.261);
--popover-foreground: oklch(0.984 0.001 282.191);
--card: oklch(0.139 0.023 278.261);
--card-foreground: oklch(0.984 0.001 282.191);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.626 0.143 277.516);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.856 0.118 103.984);
--secondary-foreground: oklch(0.201 0.03 104.221);
--accent: oklch(0.856 0.118 103.984);
--accent-foreground: oklch(0.201 0.03 104.221);
--destructive: oklch(0.579 0.221 31.118);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.626 0.143 277.516);
--chart-1: oklch(0.626 0.143 277.516);
--chart-2: oklch(0.856 0.118 103.984);
--chart-3: oklch(0.856 0.118 103.984);
--chart-4: oklch(0.868 0.109 103.885);
--chart-5: oklch(0.622 0.15 277.191);
}