Jittery is a shadcn/ui theme built around a muted yellow primary color (#b8b9ac) with muted light yellow accents (#d6d6c7). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted yellow primary (#b8b9ac) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #040401black |
| Foreground | #000000black | #fbfbf9snow |
| Card | #fdfdf7snow | #070703black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fefefbwhite | #040401black |
| Popover foreground | #000000black | #fbfbf9snow |
| Primary | #b8b9acdarkgray | #b8b9acdarkgray |
| Primary foreground | #1b1c17black | #1b1c17black |
| Secondary | #e7e8e3gainsboro | #333328darkslategray |
| Secondary foreground | #525346darkolivegreen | #cdcec0silver |
| Muted | #f2f2edwhitesmoke | #12120dblack |
| Muted foreground | #43443cdarkslategray | #c3c3bbsilver |
| Accent | #d6d6c7lightgrey | #4d4d32darkolivegreen |
| Accent foreground | #3e3e2ddarkslategray | #e1e1d1gainsboro |
| Destructive | #a32100firebrick | #ff3300orangered |
| Destructive foreground | #ffded6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b8b9acdarkgray | #b8b9acdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.77:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.61:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 8.79:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 6.00:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 8.61:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 10.60:1 | AAA |
| Accent | 6.55:1 | AA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Jittery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 107.242);
--foreground: oklch(0 0 0);
--muted: oklch(0.961 0.007 107.3);
--muted-foreground: oklch(0.382 0.013 107.761);
--popover: oklch(0.996 0.004 107.242);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0.008 107.314);
--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.781 0.017 107.562);
--primary-foreground: oklch(0.223 0.008 107.788);
--secondary: oklch(0.928 0.005 107.277);
--secondary-foreground: oklch(0.437 0.019 107.961);
--accent: oklch(0.873 0.021 107.601);
--accent-foreground: oklch(0.359 0.028 108.532);
--destructive: oklch(0.466 0.17 33.404);
--destructive-foreground: oklch(0.927 0.038 34.316);
--ring: oklch(0.781 0.017 107.562);
--chart-1: oklch(0.781 0.017 107.562);
--chart-2: oklch(0.928 0.005 107.277);
--chart-3: oklch(0.873 0.021 107.601);
--chart-4: oklch(0.95 0.004 107.242);
--chart-5: oklch(0.787 0.023 107.699);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.012 108.982);
--foreground: oklch(0.987 0.002 107.204);
--muted: oklch(0.18 0.01 108.176);
--muted-foreground: oklch(0.815 0.011 107.404);
--popover: oklch(0.102 0.012 108.982);
--popover-foreground: oklch(0.987 0.002 107.204);
--card: oklch(0.129 0.015 108.982);
--card-foreground: oklch(0.993 0.001 107.187);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.781 0.017 107.562);
--primary-foreground: oklch(0.223 0.008 107.788);
--secondary: oklch(0.319 0.019 108.208);
--secondary-foreground: oklch(0.846 0.018 107.56);
--accent: oklch(0.413 0.042 108.903);
--accent-foreground: oklch(0.904 0.021 107.597);
--destructive: oklch(0.646 0.241 32.615);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.781 0.017 107.562);
--chart-1: oklch(0.781 0.017 107.562);
--chart-2: oklch(0.319 0.019 108.208);
--chart-3: oklch(0.413 0.042 108.903);
--chart-4: oklch(0.352 0.021 108.239);
--chart-5: oklch(0.787 0.023 107.699);
}