Kitten is a shadcn/ui theme built around a muted blue primary color (#4e5b65) with muted indigo accents (#4e5065). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#4e5b65) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010304black |
| Foreground | #050b10black | #f8fafcghostwhite |
| Card | #fcfcfcsnow | #030507black |
| Card foreground | #04080cblack | #fcfdfdwhite |
| Popover | #fcfcfcsnow | #030507black |
| Popover foreground | #04080cblack | #fcfdfdwhite |
| Primary | #4e5b65dimgray | #4e5b65dimgray |
| Primary foreground | #f1f3f4whitesmoke | #f1f3f4whitesmoke |
| Secondary | #4e6563dimgray | #4e6563dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8f2f1whitesmoke | #0d1716black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #4e5065dimgray | #4e5065dimgray |
| Accent foreground | #f1f1f4whitesmoke | #f1f1f4whitesmoke |
| Destructive | #b63f0cfirebrick | #f15d1echocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4e5b65dimgray | #4e5b65dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 6.25:1 | AA |
| Muted text | 5.26:1 | AA |
| Accent | 7.04:1 | AAA |
| Destructive | 5.66:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 6.25:1 | AA |
| Muted text | 6.65:1 | AA |
| Accent | 7.04:1 | AAA |
| Destructive | 6.30:1 | AA |
Paste this into your globals.css to use Kitten in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.015 235.856);
--muted: oklch(0.954 0.01 191.014);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.131 0.013 232.103);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.131 0.013 232.103);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.464 0.023 239.113);
--primary-foreground: oklch(0.962 0.003 238.403);
--secondary: oklch(0.487 0.028 189.969);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.436 0.035 280.766);
--accent-foreground: oklch(0.958 0.004 282.142);
--destructive: oklch(0.531 0.164 39.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.464 0.023 239.113);
--chart-1: oklch(0.464 0.023 239.113);
--chart-2: oklch(0.487 0.028 189.969);
--chart-3: oklch(0.436 0.035 280.766);
--chart-4: oklch(0.516 0.03 189.956);
--chart-5: oklch(0.464 0.028 239.305);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.091 0.008 232.262);
--foreground: oklch(0.985 0.003 238.406);
--muted: oklch(0.193 0.014 189.576);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.115 0.01 232.262);
--popover-foreground: oklch(0.992 0.002 238.384);
--card: oklch(0.115 0.01 232.262);
--card-foreground: oklch(0.992 0.002 238.384);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.464 0.023 239.113);
--primary-foreground: oklch(0.962 0.003 238.403);
--secondary: oklch(0.487 0.028 189.969);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.436 0.035 280.766);
--accent-foreground: oklch(0.958 0.004 282.142);
--destructive: oklch(0.663 0.195 40.105);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.464 0.023 239.113);
--chart-1: oklch(0.464 0.023 239.113);
--chart-2: oklch(0.487 0.028 189.969);
--chart-3: oklch(0.436 0.035 280.766);
--chart-4: oklch(0.516 0.03 189.956);
--chart-5: oklch(0.464 0.028 239.305);
}