Veteran is a shadcn/ui theme built around a blue primary color (#658cb8) with green accents (#8cb865). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#658cb8) on a blue-tinted background (#060a0f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #060a0fblack |
| Foreground | #010204black | #fcfcfdwhite |
| Card | #f7fafdghostwhite | #070c13black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfcfewhite | #060a0fblack |
| Popover foreground | #010204black | #fcfcfdwhite |
| Primary | #658cb8cadetblue | #658cb8cadetblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #b8658cpalevioletred | #b8658cpalevioletred |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7d5ddgainsboro | #2a1821black |
| Muted foreground | #4f4047darkslategray | #bfb0b7silver |
| Accent | #8cb865darkseagreen | #8cb865darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #95240ebrown | #ec5132tomato |
| Destructive foreground | #fcdfdamistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #658cb8cadetblue | #658cb8cadetblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 5.29:1 | AA |
| Muted text | 6.92:1 | AA |
| Accent | 9.18:1 | AAA |
| Destructive | 6.55:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 5.29:1 | AA |
| Muted text | 8.07:1 | AAA |
| Accent | 9.18:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Veteran in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 251.473);
--foreground: oklch(0.088 0.011 242.911);
--muted: oklch(0.89 0.023 347.581);
--muted-foreground: oklch(0.39 0.022 348.393);
--popover: oklch(0.991 0.003 251.473);
--popover-foreground: oklch(0.088 0.011 242.911);
--card: oklch(0.983 0.005 251.495);
--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.629 0.08 252.36);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.614 0.116 351.664);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.732 0.122 131.751);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.444 0.152 32.899);
--destructive-foreground: oklch(0.926 0.032 31.147);
--ring: oklch(0.629 0.08 252.36);
--chart-1: oklch(0.629 0.08 252.36);
--chart-2: oklch(0.614 0.116 351.664);
--chart-3: oklch(0.732 0.122 131.751);
--chart-4: oklch(0.64 0.107 351.121);
--chart-5: oklch(0.628 0.086 252.448);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.014 247.988);
--foreground: oklch(0.992 0.001 251.462);
--muted: oklch(0.237 0.032 350.295);
--muted-foreground: oklch(0.773 0.019 347.549);
--popover: oklch(0.141 0.014 247.988);
--popover-foreground: oklch(0.992 0.001 251.462);
--card: oklch(0.153 0.016 250.737);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.629 0.08 252.36);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.614 0.116 351.664);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.732 0.122 131.751);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.643 0.197 33.207);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.629 0.08 252.36);
--chart-1: oklch(0.629 0.08 252.36);
--chart-2: oklch(0.614 0.116 351.664);
--chart-3: oklch(0.732 0.122 131.751);
--chart-4: oklch(0.64 0.107 351.121);
--chart-5: oklch(0.628 0.086 252.448);
}