Milepost is a shadcn/ui theme built around a vivid deep blue primary color (#010e1e) with vivid deep indigo accents (#02011e). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid deep blue primary (#010e1e) on a blue-tinted background (#060a0f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #060a0fblack |
| Foreground | #060c14black | #f5f7fawhitesmoke |
| Card | #fbfcfewhite | #060a0fblack |
| Card foreground | #060c14black | #f5f7fawhitesmoke |
| Popover | #fbfcfewhite | #060a0fblack |
| Popover foreground | #060c14black | #f5f7fawhitesmoke |
| Primary | #010e1eblack | #010e1eblack |
| Primary foreground | #57a0facornflowerblue | #57a0facornflowerblue |
| Secondary | #011c1eblack | #011c1eblack |
| Secondary foreground | #07d9e4darkturquoise | #07d9e4darkturquoise |
| Muted | #e3e8e8gainsboro | #171c1cblack |
| Muted foreground | #4f6263dimgray | #9cafb0darkgray |
| Accent | #02011eblack | #02011eblack |
| Accent foreground | #bdbafdlightsteelblue | #bdbafdlightsteelblue |
| Destructive | #742b01saddlebrown | #fd650dorangered |
| Destructive foreground | #fec8a9navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #010e1eblack | #010e1eblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.13:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 10.14:1 | AAA |
| Muted text | 5.20:1 | AA |
| Accent | 11.31:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 18.52:1 | AAA |
| Text on card | 18.52:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 10.14:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 11.31:1 | AAA |
| Destructive | 7.01:1 | AAA |
Paste this into your globals.css to use Milepost in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 253.24);
--foreground: oklch(0.152 0.02 251.525);
--muted: oklch(0.927 0.006 200.814);
--muted-foreground: oklch(0.481 0.023 200.373);
--popover: oklch(0.991 0.003 253.24);
--popover-foreground: oklch(0.152 0.02 251.525);
--card: oklch(0.991 0.003 253.24);
--card-foreground: oklch(0.152 0.02 251.525);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.16 0.041 249.321);
--primary-foreground: oklch(0.699 0.151 254.65);
--secondary: oklch(0.207 0.034 199.663);
--secondary-foreground: oklch(0.804 0.136 201.377);
--accent: oklch(0.116 0.067 273.875);
--accent-foreground: oklch(0.815 0.094 286.402);
--destructive: oklch(0.391 0.113 43.939);
--destructive-foreground: oklch(0.874 0.074 51.493);
--ring: oklch(0.16 0.041 249.321);
--chart-1: oklch(0.16 0.041 249.321);
--chart-2: oklch(0.207 0.034 199.663);
--chart-3: oklch(0.116 0.067 273.875);
--chart-4: oklch(0.261 0.043 200.204);
--chart-5: oklch(0.159 0.042 248.971);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.013 249.774);
--foreground: oklch(0.975 0.005 253.251);
--muted: oklch(0.221 0.008 200.481);
--muted-foreground: oklch(0.739 0.021 200.563);
--popover: oklch(0.141 0.013 249.774);
--popover-foreground: oklch(0.975 0.005 253.251);
--card: oklch(0.141 0.013 249.774);
--card-foreground: oklch(0.975 0.005 253.251);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.16 0.041 249.321);
--primary-foreground: oklch(0.699 0.151 254.65);
--secondary: oklch(0.207 0.034 199.663);
--secondary-foreground: oklch(0.804 0.136 201.377);
--accent: oklch(0.116 0.067 273.875);
--accent-foreground: oklch(0.815 0.094 286.402);
--destructive: oklch(0.691 0.202 42.707);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.16 0.041 249.321);
--chart-1: oklch(0.16 0.041 249.321);
--chart-2: oklch(0.207 0.034 199.663);
--chart-3: oklch(0.116 0.067 273.875);
--chart-4: oklch(0.261 0.043 200.204);
--chart-5: oklch(0.159 0.042 248.971);
}