jp-color is a shadcn/ui theme built around a vivid blue primary color (#005caf) with vivid blue accents (#005caf). The light mode uses a yellow-tinted background (#fcfaf2). Dark mode switches to a cyan primary (#1e88a8) on a neutral background (#1c1c1c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf2floralwhite | #1c1c1cblack |
| Foreground | #080808black | #fcfaf2floralwhite |
| Card | #fffffbwhite | #080808black |
| Card foreground | #080808black | #fcfaf2floralwhite |
| Popover | #fcfaf2floralwhite | #080808black |
| Popover foreground | #080808black | #fcfaf2floralwhite |
| Primary | #005cafdarkcyan | #1e88a8darkcyan |
| Primary foreground | #fcfaf2floralwhite | #fcfaf2floralwhite |
| Secondary | #5dac81cadetblue | #5b622edarkolivegreen |
| Secondary foreground | #fcfaf2floralwhite | #fcfaf2floralwhite |
| Muted | #b5caa0silver | #646a58dimgray |
| Muted foreground | #4d5139darkolivegreen | #bdc0basilver |
| Accent | #005cafdarkcyan | #1e88a8darkcyan |
| Accent foreground | #fcfaf2floralwhite | #fcfaf2floralwhite |
| Destructive | #e83015orangered | #e83015orangered |
| Destructive foreground | #ffffffwhite | #fcfaf2floralwhite |
| Border | #bdc0basilver | #373c38darkslategray |
| Input | #bdc0basilver | #434343darkslategray |
| Ring | #bdc0basilver | #373c38darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 6.38:1 | AA |
| Secondary button | 2.61:1 | Fail |
| Muted text | 4.67:1 | AA |
| Accent | 6.38:1 | AA |
| Destructive | 4.31:1 | AA Large |
| Text on background | 16.30:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 3.90:1 | AA Large |
| Secondary button | 6.21:1 | AA |
| Muted text | 3.04:1 | AA Large |
| Accent | 3.90:1 | AA Large |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use jp-color in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.011 95.161);
--foreground: oklch(0.134 0 180);
--muted: oklch(0.812 0.062 129.344);
--muted-foreground: oklch(0.424 0.038 115.741);
--popover: oklch(0.984 0.011 95.161);
--popover-foreground: oklch(0.134 0 180);
--card: oklch(0.999 0.005 106.494);
--card-foreground: oklch(0.134 0 180);
--border: oklch(0.804 0.009 128.585);
--input: oklch(0.804 0.009 128.585);
--primary: oklch(0.478 0.151 253.854);
--primary-foreground: oklch(0.984 0.011 95.161);
--secondary: oklch(0.682 0.102 158.313);
--secondary-foreground: oklch(0.984 0.011 95.161);
--accent: oklch(0.478 0.151 253.854);
--accent-foreground: oklch(0.984 0.011 95.161);
--destructive: oklch(0.604 0.221 31.331);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.804 0.009 128.585);
--chart-1: oklch(0.478 0.151 253.854);
--chart-2: oklch(0.682 0.102 158.313);
--chart-3: oklch(0.478 0.151 253.854);
--chart-4: oklch(0.701 0.096 158.808);
--chart-5: oklch(0.48 0.155 254.151);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.226 0 180);
--foreground: oklch(0.984 0.011 95.161);
--muted: oklch(0.514 0.028 121.869);
--muted-foreground: oklch(0.804 0.009 128.585);
--popover: oklch(0.134 0 180);
--popover-foreground: oklch(0.984 0.011 95.161);
--card: oklch(0.134 0 180);
--card-foreground: oklch(0.984 0.011 95.161);
--border: oklch(0.35 0.01 151.588);
--input: oklch(0.383 0 180);
--primary: oklch(0.584 0.102 223.827);
--primary-foreground: oklch(0.984 0.011 95.161);
--secondary: oklch(0.478 0.075 115.501);
--secondary-foreground: oklch(0.984 0.011 95.161);
--accent: oklch(0.584 0.102 223.827);
--accent-foreground: oklch(0.984 0.011 95.161);
--destructive: oklch(0.604 0.221 31.331);
--destructive-foreground: oklch(0.984 0.011 95.161);
--ring: oklch(0.35 0.01 151.588);
--chart-1: oklch(0.584 0.102 223.827);
--chart-2: oklch(0.478 0.075 115.501);
--chart-3: oklch(0.584 0.102 223.827);
--chart-4: oklch(0.513 0.081 115.537);
--chart-5: oklch(0.589 0.104 224.27);
}