Jittery is a shadcn/ui theme built around a neutral gray primary color (#5a5f59) with muted light green accents (#c7ddc5). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#5a5f59) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040c04black | #f6f8f6whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #030802black | #f9fbf9mintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040c04black | #f6f8f6whitesmoke |
| Primary | #5a5f59dimgray | #5a5f59dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e1ebe0gainsboro | #141513black |
| Secondary foreground | #405c3ddarkslategray | #aab1a9darkgray |
| Muted | #d8ead6gainsboro | #162915black |
| Muted foreground | #464a45darkslategray | #b6bab5silver |
| Accent | #c7ddc5lightgrey | #273126darkslategray |
| Accent foreground | #2b4729darkslategray | #beccbdsilver |
| Destructive | #681503maroon | #f9370borangered |
| Destructive foreground | #fdb1a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5a5f59dimgray | #5a5f59dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 6.08:1 | AA |
| Muted text | 7.18:1 | AAA |
| Accent | 7.18:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 7.86:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Jittery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.14 0.026 141.502);
--muted: oklch(0.919 0.033 142.964);
--muted-foreground: oklch(0.402 0.009 143.033);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.14 0.026 141.502);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.122 0.022 141.483);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.478 0.011 143.029);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.929 0.017 143.05);
--secondary-foreground: oklch(0.443 0.059 142.493);
--accent: oklch(0.875 0.041 142.911);
--accent-foreground: oklch(0.368 0.061 142.346);
--destructive: oklch(0.341 0.119 33.878);
--destructive-foreground: oklch(0.829 0.092 33.106);
--ring: oklch(0.478 0.011 143.029);
--chart-1: oklch(0.478 0.011 143.029);
--chart-2: oklch(0.929 0.017 143.05);
--chart-3: oklch(0.875 0.041 142.911);
--chart-4: oklch(0.95 0.012 143.077);
--chart-5: oklch(0.481 0.021 142.925);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.003 143.118);
--muted: oklch(0.257 0.044 142.316);
--muted-foreground: oklch(0.784 0.007 143.09);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.003 143.118);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.002 143.123);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.478 0.011 143.029);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.195 0.005 143.015);
--secondary-foreground: oklch(0.754 0.014 143.046);
--accent: oklch(0.3 0.024 142.745);
--accent-foreground: oklch(0.83 0.026 142.988);
--destructive: oklch(0.638 0.233 32.704);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.478 0.011 143.029);
--chart-1: oklch(0.478 0.011 143.029);
--chart-2: oklch(0.195 0.005 143.015);
--chart-3: oklch(0.3 0.024 142.745);
--chart-4: oklch(0.229 0.007 143);
--chart-5: oklch(0.481 0.021 142.925);
}