Millimeter is a shadcn/ui theme built around a vivid light green primary color (#c8f9d3) with vivid light purple accents (#f9c8ed). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#c8f9d3) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030704black |
| Foreground | #020804black | #f8fcf9mintcream |
| Card | #ffffffwhite | #030704black |
| Card foreground | #020804black | #f8fcf9mintcream |
| Popover | #ffffffwhite | #030704black |
| Popover foreground | #020804black | #f8fcf9mintcream |
| Primary | #c8f9d3gainsboro | #c8f9d3gainsboro |
| Primary foreground | #04250cblack | #04250cblack |
| Secondary | #f9c8edmistyrose | #f9c8edmistyrose |
| Secondary foreground | #810e66purple | #810e66purple |
| Muted | #e9d8e5gainsboro | #271623black |
| Muted foreground | #4a4047darkslategray | #bfb5bdsilver |
| Accent | #f9c8edmistyrose | #f9c8edmistyrose |
| Accent foreground | #810e66purple | #810e66purple |
| Destructive | #611405maroon | #da2e0borangered |
| Destructive foreground | #faad9elightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c8f9d3gainsboro | #c8f9d3gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 14.06:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 7.28:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 14.06:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 8.60:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 4.79:1 | AA |
Paste this into your globals.css to use Millimeter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.019 152.525);
--muted: oklch(0.9 0.025 333.679);
--muted-foreground: oklch(0.384 0.018 333.973);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.019 152.525);
--card: oklch(1 0 180);
--card-foreground: oklch(0.123 0.019 152.525);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.938 0.071 151.927);
--primary-foreground: oklch(0.232 0.06 148.076);
--secondary: oklch(0.886 0.074 334.523);
--secondary-foreground: oklch(0.412 0.168 340.494);
--accent: oklch(0.886 0.074 334.523);
--accent-foreground: oklch(0.412 0.168 340.494);
--destructive: oklch(0.326 0.112 33.209);
--destructive-foreground: oklch(0.818 0.093 31.695);
--ring: oklch(0.938 0.071 151.927);
--chart-1: oklch(0.938 0.071 151.927);
--chart-2: oklch(0.886 0.074 334.523);
--chart-3: oklch(0.886 0.074 334.523);
--chart-4: oklch(0.914 0.055 334.178);
--chart-5: oklch(0.939 0.074 151.878);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.012 152.819);
--foreground: oklch(0.987 0.005 153.155);
--muted: oklch(0.229 0.035 335.512);
--muted-foreground: oklch(0.784 0.015 333.545);
--popover: oklch(0.12 0.012 152.819);
--popover-foreground: oklch(0.987 0.005 153.155);
--card: oklch(0.12 0.012 152.819);
--card-foreground: oklch(0.987 0.005 153.155);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.938 0.071 151.927);
--primary-foreground: oklch(0.232 0.06 148.076);
--secondary: oklch(0.886 0.074 334.523);
--secondary-foreground: oklch(0.412 0.168 340.494);
--accent: oklch(0.886 0.074 334.523);
--accent-foreground: oklch(0.412 0.168 340.494);
--destructive: oklch(0.577 0.211 32.316);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.938 0.071 151.927);
--chart-1: oklch(0.938 0.071 151.927);
--chart-2: oklch(0.886 0.074 334.523);
--chart-3: oklch(0.886 0.074 334.523);
--chart-4: oklch(0.914 0.055 334.178);
--chart-5: oklch(0.939 0.074 151.878);
}