Kneejerk is a shadcn/ui theme built around a near-white primary color (#f5f5f5) with near-white accents (#f5f5f5). The light mode uses a neutral background (#faf8fc). Dark mode keeps the near-white primary (#f5f5f5) on a violet-tinted background (#0b060e).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #0b060eblack |
| Foreground | #0c0411black | #faf9fbghostwhite |
| Card | #faf8fcghostwhite | #0b060eblack |
| Card foreground | #0c0411black | #faf9fbghostwhite |
| Popover | #faf8fcghostwhite | #0b060eblack |
| Popover foreground | #0c0411black | #faf9fbghostwhite |
| Primary | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Primary foreground | #5c5b5ddimgray | #5c5b5ddimgray |
| Secondary | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Secondary foreground | #5d5c5bdimgray | #5d5c5bdimgray |
| Muted | #e5e4e1gainsboro | #1e1d1ablack |
| Muted foreground | #585756dimgray | #a9a9a7darkgray |
| Accent | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Accent foreground | #5b5d5cdimgray | #5b5d5cdimgray |
| Destructive | #d93802orangered | #ed3d02orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 6.11:1 | AA |
| Muted text | 5.65:1 | AA |
| Accent | 6.07:1 | AA |
| Destructive | 4.64:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 6.11:1 | AA |
| Muted text | 7.17:1 | AAA |
| Accent | 6.07:1 | AA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Kneejerk in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 314.192);
--foreground: oklch(0.13 0.034 314.517);
--muted: oklch(0.918 0.004 83.059);
--muted-foreground: oklch(0.457 0.002 83.059);
--popover: oklch(0.982 0.005 314.192);
--popover-foreground: oklch(0.13 0.034 314.517);
--card: oklch(0.982 0.005 314.192);
--card-foreground: oklch(0.13 0.034 314.517);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.969 0 314.218);
--primary-foreground: oklch(0.472 0.003 314.181);
--secondary: oklch(0.97 0 83.054);
--secondary-foreground: oklch(0.475 0.002 83.059);
--accent: oklch(0.97 0 173.567);
--accent-foreground: oklch(0.475 0.003 173.418);
--destructive: oklch(0.584 0.204 34.939);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.969 0 314.218);
--chart-1: oklch(0.969 0 314.218);
--chart-2: oklch(0.97 0 83.054);
--chart-3: oklch(0.97 0 173.567);
--chart-4: oklch(0.992 0 83.053);
--chart-5: oklch(0.969 0.001 314.213);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.02 314.286);
--foreground: oklch(0.983 0.003 314.203);
--muted: oklch(0.23 0.005 83.062);
--muted-foreground: oklch(0.734 0.002 83.057);
--popover: oklch(0.137 0.02 314.286);
--popover-foreground: oklch(0.983 0.003 314.203);
--card: oklch(0.137 0.02 314.286);
--card-foreground: oklch(0.983 0.003 314.203);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.969 0 314.218);
--primary-foreground: oklch(0.472 0.003 314.181);
--secondary: oklch(0.97 0 83.054);
--secondary-foreground: oklch(0.475 0.002 83.059);
--accent: oklch(0.97 0 173.567);
--accent-foreground: oklch(0.475 0.003 173.418);
--destructive: oklch(0.623 0.219 34.784);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.969 0 314.218);
--chart-1: oklch(0.969 0 314.218);
--chart-2: oklch(0.97 0 83.054);
--chart-3: oklch(0.97 0 173.567);
--chart-4: oklch(0.992 0 83.053);
--chart-5: oklch(0.969 0.001 314.213);
}