Keen is a shadcn/ui theme built around a neutral gray primary color (#5d5f5f) with neutral gray accents (#5d5e5f). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the neutral gray primary (#5d5f5f) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #020608black |
| Foreground | #010304black | #f5f9faghostwhite |
| Card | #f8fbfcghostwhite | #040a0cblack |
| Card foreground | #000000black | #f8fbfcghostwhite |
| Popover | #f8fbfcghostwhite | #040a0cblack |
| Popover foreground | #000000black | #f8fbfcghostwhite |
| Primary | #5d5f5fdimgray | #5d5f5fdimgray |
| Primary foreground | #f7f7f7whitesmoke | #f7f7f7whitesmoke |
| Secondary | #5d5f5fdimgray | #5d5f5fdimgray |
| Secondary foreground | #f7f7f7whitesmoke | #f7f7f7whitesmoke |
| Muted | #cdeae3gainsboro | #15322bdarkslategray |
| Muted foreground | #414947darkslategray | #b6bebcsilver |
| Accent | #5d5e5fdimgray | #5d5e5fdimgray |
| Accent foreground | #f7f7f7whitesmoke | #f7f7f7whitesmoke |
| Destructive | #8e1806darkred | #f7543btomato |
| Destructive foreground | #fdd0c9pink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5d5f5fdimgray | #5d5f5fdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 5.97:1 | AA |
| Muted text | 7.24:1 | AAA |
| Accent | 6.06:1 | AA |
| Destructive | 6.58:1 | AA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 5.97:1 | AA |
| Muted text | 7.27:1 | AAA |
| Accent | 6.06:1 | AA |
| Destructive | 6.28:1 | AA |
Paste this into your globals.css to use Keen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 221.321);
--foreground: oklch(0.095 0.011 215.497);
--muted: oklch(0.913 0.031 179.963);
--muted-foreground: oklch(0.397 0.011 180.145);
--popover: oklch(0.986 0.004 221.339);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.004 221.339);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.484 0.002 221.339);
--primary-foreground: oklch(0.977 0 221.306);
--secondary: oklch(0.485 0.002 180.816);
--secondary-foreground: oklch(0.977 0 180.956);
--accent: oklch(0.481 0.002 272.606);
--accent-foreground: oklch(0.977 0 272.655);
--destructive: oklch(0.419 0.155 31.511);
--destructive-foreground: oklch(0.894 0.052 28.338);
--ring: oklch(0.484 0.002 221.339);
--chart-1: oklch(0.484 0.002 221.339);
--chart-2: oklch(0.485 0.002 180.816);
--chart-3: oklch(0.481 0.002 272.606);
--chart-4: oklch(0.512 0.003 180.815);
--chart-5: oklch(0.485 0.008 221.451);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.012 216.39);
--foreground: oklch(0.978 0.005 221.347);
--muted: oklch(0.292 0.037 176.487);
--muted-foreground: oklch(0.795 0.01 180.62);
--popover: oklch(0.136 0.013 217.1);
--popover-foreground: oklch(0.986 0.003 221.333);
--card: oklch(0.136 0.013 217.1);
--card-foreground: oklch(0.986 0.003 221.333);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.484 0.002 221.339);
--primary-foreground: oklch(0.977 0 221.306);
--secondary: oklch(0.485 0.002 180.816);
--secondary-foreground: oklch(0.977 0 180.956);
--accent: oklch(0.481 0.002 272.606);
--accent-foreground: oklch(0.977 0 272.655);
--destructive: oklch(0.665 0.203 31.479);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.484 0.002 221.339);
--chart-1: oklch(0.484 0.002 221.339);
--chart-2: oklch(0.485 0.002 180.816);
--chart-3: oklch(0.481 0.002 272.606);
--chart-4: oklch(0.512 0.003 180.815);
--chart-5: oklch(0.485 0.008 221.451);
}