Eligible Navy is a shadcn/ui theme built around a deep blue primary color (#0c193b) with deep indigo accents (#160c3b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#0c193b) on a blue-tinted background (#040810).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040810black |
| Foreground | #04060cblack | #fcfcfdwhite |
| Card | #ffffffwhite | #040810black |
| Card foreground | #04060cblack | #fcfcfdwhite |
| Popover | #ffffffwhite | #040810black |
| Popover foreground | #04060cblack | #fcfcfdwhite |
| Primary | #0c193bmidnightblue | #0c193bmidnightblue |
| Primary foreground | #91aae8skyblue | #91aae8skyblue |
| Secondary | #0c313bdarkslategray | #0c313bdarkslategray |
| Secondary foreground | #91d5e8skyblue | #91d5e8skyblue |
| Muted | #d2e5eagainsboro | #15282ddarkslategray |
| Muted foreground | #4e646adimgray | #95abb1darkgray |
| Accent | #160c3bmidnightblue | #160c3bmidnightblue |
| Accent foreground | #a491e8mediumpurple | #a491e8mediumpurple |
| Destructive | #7f2805saddlebrown | #f55719orangered |
| Destructive foreground | #fccdbapeachpuff | #000000black |
| Border | #e2e4e9gainsboro | #181a20black |
| Input | #e2e4e9gainsboro | #181a20black |
| Ring | #0c193bmidnightblue | #0c193bmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 4.79:1 | AA |
| Accent | 6.76:1 | AA |
| Destructive | 6.59:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 6.76:1 | AA |
| Destructive | 6.28:1 | AA |
Paste this into your globals.css to use Eligible Navy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.121 0.016 261.667);
--muted: oklch(0.909 0.022 216.139);
--muted-foreground: oklch(0.486 0.028 216.464);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.121 0.016 261.667);
--card: oklch(1 0 180);
--card-foreground: oklch(0.121 0.016 261.667);
--border: oklch(0.919 0.007 268.739);
--input: oklch(0.919 0.007 268.739);
--primary: oklch(0.226 0.068 265.164);
--primary-foreground: oklch(0.742 0.095 267.467);
--secondary: oklch(0.293 0.045 219.817);
--secondary-foreground: oklch(0.835 0.074 217.015);
--accent: oklch(0.205 0.085 286.11);
--accent-foreground: oklch(0.708 0.127 292.832);
--destructive: oklch(0.406 0.127 38.377);
--destructive-foreground: oklch(0.885 0.059 42.67);
--ring: oklch(0.226 0.068 265.164);
--chart-1: oklch(0.226 0.068 265.164);
--chart-2: oklch(0.293 0.045 219.817);
--chart-3: oklch(0.205 0.085 286.11);
--chart-4: oklch(0.331 0.052 220.164);
--chart-5: oklch(0.225 0.071 264.983);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.021 262.484);
--foreground: oklch(0.992 0.001 268.787);
--muted: oklch(0.263 0.027 217.377);
--muted-foreground: oklch(0.727 0.026 216.228);
--popover: oklch(0.133 0.021 262.484);
--popover-foreground: oklch(0.992 0.001 268.787);
--card: oklch(0.133 0.021 262.484);
--card-foreground: oklch(0.992 0.001 268.787);
--border: oklch(0.22 0.011 268.381);
--input: oklch(0.22 0.011 268.381);
--primary: oklch(0.226 0.068 265.164);
--primary-foreground: oklch(0.742 0.095 267.467);
--secondary: oklch(0.293 0.045 219.817);
--secondary-foreground: oklch(0.835 0.074 217.015);
--accent: oklch(0.205 0.085 286.11);
--accent-foreground: oklch(0.708 0.127 292.832);
--destructive: oklch(0.664 0.204 38.535);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.226 0.068 265.164);
--chart-1: oklch(0.226 0.068 265.164);
--chart-2: oklch(0.293 0.045 219.817);
--chart-3: oklch(0.205 0.085 286.11);
--chart-4: oklch(0.331 0.052 220.164);
--chart-5: oklch(0.225 0.071 264.983);
}