Jittery is a shadcn/ui theme built around a near-black primary color (#020203) with muted light indigo accents (#e7e7ef). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the near-black primary (#020203) on an indigo-tinted background (#06050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #06050fblack |
| Foreground | #010104black | #fcfcfdwhite |
| Card | #f7f7fdghostwhite | #070713black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7f7fdghostwhite | #070713black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #020203black | #020203black |
| Primary foreground | #8e8daalightslategray | #8e8daalightslategray |
| Secondary | #e7e7eflavender | #181821black |
| Secondary foreground | #434162darkslategray | #aaa9c1darkgray |
| Muted | #cbc9e8thistle | #181736midnightblue |
| Muted foreground | #5a5973dimgray | #8d8ca6lightslategray |
| Accent | #e7e7eflavender | #181821black |
| Accent foreground | #434162darkslategray | #aaa9c1darkgray |
| Destructive | #981d01darkred | #fe5934tomato |
| Destructive foreground | #ffd6ccbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #020203black | #020203black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 4.21:1 | AA Large |
| Accent | 7.83:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 5.29:1 | AA |
| Accent | 7.70:1 | AAA |
| Destructive | 6.69:1 | AA |
Paste this into your globals.css to use Jittery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 288.628);
--foreground: oklch(0.076 0.016 285.097);
--muted: oklch(0.848 0.042 287.754);
--muted-foreground: oklch(0.475 0.042 286.95);
--popover: oklch(0.977 0.009 288.544);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.977 0.009 288.544);
--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.088 0.004 288.015);
--primary-foreground: oklch(0.654 0.044 287.404);
--secondary: oklch(0.929 0.011 288.489);
--secondary-foreground: oklch(0.392 0.055 285.867);
--accent: oklch(0.929 0.011 288.489);
--accent-foreground: oklch(0.392 0.055 285.867);
--destructive: oklch(0.442 0.162 32.992);
--destructive-foreground: oklch(0.907 0.048 32.772);
--ring: oklch(0.088 0.004 288.015);
--chart-1: oklch(0.088 0.004 288.015);
--chart-2: oklch(0.929 0.011 288.489);
--chart-3: oklch(0.929 0.011 288.489);
--chart-4: oklch(0.956 0.007 288.577);
--chart-5: oklch(0.087 0.005 287.858);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.024 285.27);
--foreground: oklch(0.99 0.002 288.666);
--muted: oklch(0.225 0.058 282.942);
--muted-foreground: oklch(0.649 0.039 287.545);
--popover: oklch(0.135 0.028 284.711);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.028 284.711);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.088 0.004 288.015);
--primary-foreground: oklch(0.654 0.044 287.404);
--secondary: oklch(0.212 0.018 287.084);
--secondary-foreground: oklch(0.744 0.034 287.843);
--accent: oklch(0.212 0.018 287.084);
--accent-foreground: oklch(0.744 0.034 287.843);
--destructive: oklch(0.681 0.207 34.067);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.088 0.004 288.015);
--chart-1: oklch(0.088 0.004 288.015);
--chart-2: oklch(0.212 0.018 287.084);
--chart-3: oklch(0.212 0.018 287.084);
--chart-4: oklch(0.241 0.022 286.939);
--chart-5: oklch(0.087 0.005 287.858);
}