HP-New is a shadcn/ui theme built around a vivid blue primary color (#005ca9) with neutral gray accents (#dedede). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid blue primary (#005ca9) on a blue-tinted background (#060910).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #060910black |
| Foreground | #050f15black | #ffffffwhite |
| Card | #f7fbfcghostwhite | #050a0fblack |
| Card foreground | #040c10black | #ffffffwhite |
| Popover | #fbfdfewhite | #04090bblack |
| Popover foreground | #050f15black | #ffffffwhite |
| Primary | #005ca9teal | #005ca9teal |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dce1e4gainsboro | #222b2fdarkslategray |
| Secondary foreground | #3e4a51darkslategray | #b8c4ccsilver |
| Muted | #d3dde4gainsboro | #32393fdarkslategray |
| Muted foreground | #5a6368dimgray | #b3b3b3darkgray |
| Accent | #dededegainsboro | #232729darkslategray |
| Accent foreground | #3e4a51darkslategray | #b8c4ccsilver |
| Destructive | #bc180cfirebrick | #b8180cfirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eff0f0whitesmoke | #686868dimgray |
| Input | #000000black | #7c7c7cgray |
| Ring | #008ee0dodgerblue | #008ee0dodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.93:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 6.94:1 | AA |
| Muted text | 4.45:1 | AA Large |
| Accent | 6.75:1 | AA |
| Destructive | 6.39:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 8.50:1 | AAA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use HP-New in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 232.609);
--foreground: oklch(0.16 0.02 232.769);
--muted: oklch(0.892 0.014 238.037);
--muted-foreground: oklch(0.493 0.013 232.98);
--popover: oklch(0.993 0.003 228.784);
--popover-foreground: oklch(0.16 0.02 232.769);
--card: oklch(0.985 0.004 214.329);
--card-foreground: oklch(0.147 0.017 230.295);
--border: oklch(0.954 0.001 232.599);
--input: oklch(0 0 0);
--primary: oklch(0.474 0.144 252.443);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.908 0.007 232.684);
--secondary-foreground: oklch(0.401 0.019 233.329);
--accent: oklch(0.9 0 180);
--accent-foreground: oklch(0.401 0.019 233.329);
--destructive: oklch(0.509 0.197 29.756);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.626 0.159 245.351);
--chart-1: oklch(0.474 0.144 252.443);
--chart-2: oklch(0.908 0.007 232.684);
--chart-3: oklch(0.9 0 180);
--chart-4: oklch(0.931 0.005 232.656);
--chart-5: oklch(0.476 0.147 252.76);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.016 256.451);
--foreground: oklch(1 0 180);
--muted: oklch(0.341 0.014 238.429);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0.133 0.012 227.274);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.015 249.109);
--card-foreground: oklch(1 0 180);
--border: oklch(0.517 0 180);
--input: oklch(0.585 0 188.13);
--primary: oklch(0.474 0.144 252.443);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.282 0.015 226.591);
--secondary-foreground: oklch(0.814 0.017 232.884);
--accent: oklch(0.268 0.008 233.003);
--accent-foreground: oklch(0.814 0.017 232.884);
--destructive: oklch(0.501 0.193 29.753);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.625 0.158 245.28);
--chart-1: oklch(0.474 0.144 252.443);
--chart-2: oklch(0.282 0.015 226.591);
--chart-3: oklch(0.268 0.008 233.003);
--chart-4: oklch(0.314 0.017 226.63);
--chart-5: oklch(0.476 0.147 252.76);
}