Kay Dark is a shadcn/ui theme built around a neutral gray primary color (#7a7d7f) with muted deep blue accents (#353b45). The light mode uses a blue-tinted background (#14161a). Dark mode keeps the neutral gray primary (#7a7d7f) on a blue-tinted background (#14161a).
| Token | Light | Dark |
|---|---|---|
| Background | #14161ablack | #14161ablack |
| Foreground | #8599b2lightslategray | #8599b2lightslategray |
| Card | #101114black | #101114black |
| Card foreground | #94a6bcdarkgray | #94a6bcdarkgray |
| Popover | #0d0f11black | #0d0f11black |
| Popover foreground | #a4b3c6darkgray | #a4b3c6darkgray |
| Primary | #7a7d7fgray | #7a7d7fgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #bfbfbfsilver | #bfbfbfsilver |
| Secondary foreground | #262626darkslategray | #262626darkslategray |
| Muted | #22252bdarkslategray | #22252bdarkslategray |
| Muted foreground | #9ba2b0darkgray | #9ba2b0darkgray |
| Accent | #353b45darkslategray | #353b45darkslategray |
| Accent foreground | #d1d4dclightgrey | #d1d4dclightgrey |
| Destructive | #d31612firebrick | #d31612firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #232325black | #232325black |
| Input | #2a2b2ddarkslategray | #2a2b2ddarkslategray |
| Ring | #7a7d7fgray | #7a7d7fgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 6.20:1 | AA |
| Text on card | 7.58:1 | AAA |
| Primary button | 4.13:1 | AA Large |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.63:1 | AAA |
| Destructive | 5.39:1 | AA |
| Text on background | 6.20:1 | AA |
| Text on card | 7.58:1 | AAA |
| Primary button | 4.13:1 | AA Large |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.63:1 | AAA |
| Destructive | 5.39:1 | AA |
Paste this into your globals.css to use Kay Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.2 0.009 264.361);
--foreground: oklch(0.675 0.045 255.217);
--muted: oklch(0.263 0.012 264.338);
--muted-foreground: oklch(0.712 0.022 264.424);
--popover: oklch(0.166 0.006 264.4);
--popover-foreground: oklch(0.761 0.032 255.142);
--card: oklch(0.178 0.007 264.385);
--card-foreground: oklch(0.718 0.038 255.178);
--border: oklch(0.257 0.003 264.514);
--input: oklch(0.289 0.003 264.512);
--primary: oklch(0.588 0.005 247.908);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.35 0.02 264.276);
--accent-foreground: oklch(0.871 0.01 264.511);
--destructive: oklch(0.551 0.217 28.74);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.588 0.005 247.908);
--chart-1: oklch(0.588 0.005 247.908);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.35 0.02 264.276);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.586 0.012 248.035);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.2 0.009 264.361);
--foreground: oklch(0.675 0.045 255.217);
--muted: oklch(0.263 0.012 264.338);
--muted-foreground: oklch(0.712 0.022 264.424);
--popover: oklch(0.166 0.006 264.4);
--popover-foreground: oklch(0.761 0.032 255.142);
--card: oklch(0.178 0.007 264.385);
--card-foreground: oklch(0.718 0.038 255.178);
--border: oklch(0.257 0.003 264.514);
--input: oklch(0.289 0.003 264.512);
--primary: oklch(0.588 0.005 247.908);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.35 0.02 264.276);
--accent-foreground: oklch(0.871 0.01 264.511);
--destructive: oklch(0.551 0.217 28.74);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.588 0.005 247.908);
--chart-1: oklch(0.588 0.005 247.908);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.35 0.02 264.276);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.586 0.012 248.035);
}