Kōyō is a shadcn/ui theme built around a vivid blue primary color (#6699ff) with near-white accents (#e6e6e6). The light mode uses a neutral background (#fafafa). Dark mode keeps the vivid blue primary (#6699ff) on a neutral background (#252525).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #252525darkslategray |
| Foreground | #2e405cdarkslategray | #eff2f7whitesmoke |
| Card | #f2f2f2whitesmoke | #2b2b2bdarkslategray |
| Card foreground | #2e405cdarkslategray | #eff2f7whitesmoke |
| Popover | #fafafasnow | #252525darkslategray |
| Popover foreground | #2e405cdarkslategray | #eff2f7whitesmoke |
| Primary | #6699ffcornflowerblue | #6699ffcornflowerblue |
| Primary foreground | #f2f2f3whitesmoke | #0c0d0dblack |
| Secondary | #e6e6e6gainsboro | #4c4c4cdarkslategray |
| Secondary foreground | #2e405cdarkslategray | #eff2f7whitesmoke |
| Muted | #e6e6e6gainsboro | #333333darkslategray |
| Muted foreground | #444f60darkslategray | #b6bfccsilver |
| Accent | #e6e6e6gainsboro | #4c4c4cdarkslategray |
| Accent foreground | #2e405cdarkslategray | #eff2f7whitesmoke |
| Destructive | #d85c5cindianred | #d85c5cindianred |
| Destructive foreground | #f2f2f3whitesmoke | #0c0d0dblack |
| Border | #e4e4e4gainsboro | #3f3f3fdarkslategray |
| Input | #e4e4e4gainsboro | #3f3f3fdarkslategray |
| Ring | #6699ffcornflowerblue | #6699ffcornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.03:1 | AAA |
| Text on card | 9.38:1 | AAA |
| Primary button | 2.48:1 | Fail |
| Secondary button | 8.39:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 3.35:1 | AA Large |
| Text on background | 13.61:1 | AAA |
| Text on card | 12.55:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 6.80:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 5.19:1 | AA |
Paste this into your globals.css to use Kōyō in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 170.538);
--foreground: oklch(0.369 0.054 259.003);
--muted: oklch(0.923 0 153.435);
--muted-foreground: oklch(0.424 0.032 259.147);
--popover: oklch(0.985 0 264.549);
--popover-foreground: oklch(0.369 0.054 259.003);
--card: oklch(0.962 0 180);
--card-foreground: oklch(0.369 0.054 259.003);
--border: oklch(0.917 0 172.875);
--input: oklch(0.919 0 172.875);
--primary: oklch(0.694 0.16 262.859);
--primary-foreground: oklch(0.961 0.001 264.547);
--secondary: oklch(0.925 0 180);
--secondary-foreground: oklch(0.369 0.054 259.003);
--accent: oklch(0.925 0 180);
--accent-foreground: oklch(0.369 0.054 259.003);
--destructive: oklch(0.631 0.157 22.644);
--destructive-foreground: oklch(0.961 0.001 264.547);
--ring: oklch(0.694 0.16 262.859);
--chart-1: oklch(0.694 0.16 262.859);
--chart-2: oklch(0.925 0 180);
--chart-3: oklch(0.925 0 180);
--chart-4: oklch(0.948 0 167.471);
--chart-5: oklch(0.693 0.165 262.802);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.266 0 180);
--foreground: oklch(0.961 0.007 259.174);
--muted: oklch(0.321 0 180);
--muted-foreground: oklch(0.801 0.021 259.189);
--popover: oklch(0.264 0 180);
--popover-foreground: oklch(0.961 0.007 259.174);
--card: oklch(0.29 0 180);
--card-foreground: oklch(0.961 0.007 259.174);
--border: oklch(0.368 0 180);
--input: oklch(0.367 0 180);
--primary: oklch(0.694 0.16 262.859);
--primary-foreground: oklch(0.157 0.002 264.51);
--secondary: oklch(0.417 0 180);
--secondary-foreground: oklch(0.961 0.007 259.174);
--accent: oklch(0.417 0 180);
--accent-foreground: oklch(0.961 0.007 259.174);
--destructive: oklch(0.632 0.157 22.638);
--destructive-foreground: oklch(0.157 0.002 264.51);
--ring: oklch(0.694 0.16 262.859);
--chart-1: oklch(0.694 0.16 262.859);
--chart-2: oklch(0.417 0 180);
--chart-3: oklch(0.417 0 180);
--chart-4: oklch(0.445 0 180);
--chart-5: oklch(0.693 0.165 262.802);
}