Keen is a shadcn/ui theme built around a purple primary color (#6b2e5a) with muted light purple accents (#d4b5cb). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#6b2e5a) on a purple-tinted background (#10040d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #10040dblack |
| Foreground | #11040dblack | #fbf9fasnow |
| Card | #fcfcfcsnow | #140510black |
| Card foreground | #0d030ablack | #fdfcfdwhite |
| Popover | #fcfcfcsnow | #140510black |
| Popover foreground | #0d030ablack | #fdfcfdwhite |
| Primary | #6b2e5adimgray | #6b2e5adimgray |
| Primary foreground | #f0dbeamistyrose | #f0dbeamistyrose |
| Secondary | #decedalightgrey | #151414black |
| Secondary foreground | #493143darkslategray | #aeadaedarkgray |
| Muted | #e9e2e7gainsboro | #1d161bblack |
| Muted foreground | #4f404bdarkslategray | #bfb0bbsilver |
| Accent | #d4b5cbthistle | #2a2228darkslategray |
| Accent foreground | #372030darkslategray | #c6b9c2silver |
| Destructive | #9d3e07saddlebrown | #f67328tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6b2e5adimgray | #6b2e5adimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 8.57:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 7.41:1 | AAA |
Paste this into your globals.css to use Keen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.136 0.034 337.703);
--muted: oklch(0.92 0.01 335.393);
--muted-foreground: oklch(0.39 0.028 336.447);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.122 0.03 336.362);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.122 0.03 336.362);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.401 0.104 339.594);
--primary-foreground: oklch(0.913 0.03 335.767);
--secondary: oklch(0.868 0.024 335.683);
--secondary-foreground: oklch(0.348 0.045 337.387);
--accent: oklch(0.806 0.046 336.184);
--accent-foreground: oklch(0.279 0.044 337.824);
--destructive: oklch(0.487 0.139 43.487);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.401 0.104 339.594);
--chart-1: oklch(0.401 0.104 339.594);
--chart-2: oklch(0.868 0.024 335.683);
--chart-3: oklch(0.806 0.046 336.184);
--chart-4: oklch(0.893 0.019 335.579);
--chart-5: oklch(0.402 0.111 339.9);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.032 337.563);
--foreground: oklch(0.984 0.003 335.252);
--muted: oklch(0.211 0.015 336.425);
--muted-foreground: oklch(0.773 0.024 335.738);
--popover: oklch(0.149 0.036 338.443);
--popover-foreground: oklch(0.992 0.002 335.221);
--card: oklch(0.149 0.036 338.443);
--card-foreground: oklch(0.992 0.002 335.221);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.401 0.104 339.594);
--primary-foreground: oklch(0.913 0.03 335.767);
--secondary: oklch(0.193 0.001 335.273);
--secondary-foreground: oklch(0.748 0.002 335.251);
--accent: oklch(0.265 0.015 336.194);
--accent-foreground: oklch(0.799 0.019 335.619);
--destructive: oklch(0.702 0.18 46.044);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.401 0.104 339.594);
--chart-1: oklch(0.401 0.104 339.594);
--chart-2: oklch(0.193 0.001 335.273);
--chart-3: oklch(0.265 0.015 336.194);
--chart-4: oklch(0.226 0.001 335.283);
--chart-5: oklch(0.402 0.111 339.9);
}