Jittery is a shadcn/ui theme built around a vivid deep green primary color (#041801) with vivid deep purple accents (#160118). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid deep green primary (#041801) on a neutral background (#040704).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #040704black |
| Foreground | #041103black | #f6faf5whitesmoke |
| Card | #f8fdf7mintcream | #040704black |
| Card foreground | #041103black | #f6faf5whitesmoke |
| Popover | #f8fdf7mintcream | #040704black |
| Popover foreground | #041103black | #f6faf5whitesmoke |
| Primary | #041801black | #041801black |
| Primary foreground | #20da0blimegreen | #20da0blimegreen |
| Secondary | #160118black | #160118black |
| Secondary foreground | #e655f6orchid | #e655f6orchid |
| Muted | #e6cee9gainsboro | #2e1631darkslategray |
| Muted foreground | #605c60dimgray | #a29fa3darkgray |
| Accent | #160118black | #160118black |
| Accent foreground | #e655f6orchid | #e655f6orchid |
| Destructive | #911c0ddarkred | #ec3a22orangered |
| Destructive foreground | #fbd9d5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #041801black | #041801black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 9.75:1 | AAA |
| Secondary button | 6.64:1 | AA |
| Muted text | 4.49:1 | AA Large |
| Accent | 6.64:1 | AA |
| Destructive | 6.70:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 9.75:1 | AAA |
| Secondary button | 6.64:1 | AA |
| Muted text | 6.26:1 | AA |
| Accent | 6.64:1 | AA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Jittery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 142.588);
--foreground: oklch(0.161 0.038 140.711);
--muted: oklch(0.879 0.044 322.824);
--muted-foreground: oklch(0.481 0.007 322.688);
--popover: oklch(0.988 0.009 142.588);
--popover-foreground: oklch(0.161 0.038 140.711);
--card: oklch(0.988 0.009 142.588);
--card-foreground: oklch(0.161 0.038 140.711);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.185 0.055 140.418);
--primary-foreground: oklch(0.772 0.257 142.062);
--secondary: oklch(0.146 0.061 324.347);
--secondary-foreground: oklch(0.702 0.253 323.581);
--accent: oklch(0.146 0.061 324.347);
--accent-foreground: oklch(0.702 0.253 323.581);
--destructive: oklch(0.429 0.155 31.036);
--destructive-foreground: oklch(0.913 0.039 26.778);
--ring: oklch(0.185 0.055 140.418);
--chart-1: oklch(0.185 0.055 140.418);
--chart-2: oklch(0.146 0.061 324.347);
--chart-3: oklch(0.146 0.061 324.347);
--chart-4: oklch(0.187 0.081 323.852);
--chart-5: oklch(0.186 0.057 140.348);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.012 141.708);
--foreground: oklch(0.98 0.007 142.597);
--muted: oklch(0.248 0.058 323.417);
--muted-foreground: oklch(0.706 0.007 322.665);
--popover: oklch(0.12 0.012 141.708);
--popover-foreground: oklch(0.98 0.007 142.597);
--card: oklch(0.12 0.012 141.708);
--card-foreground: oklch(0.98 0.007 142.597);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.185 0.055 140.418);
--primary-foreground: oklch(0.772 0.257 142.062);
--secondary: oklch(0.146 0.061 324.347);
--secondary-foreground: oklch(0.702 0.253 323.581);
--accent: oklch(0.146 0.061 324.347);
--accent-foreground: oklch(0.702 0.253 323.581);
--destructive: oklch(0.619 0.217 31.032);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.185 0.055 140.418);
--chart-1: oklch(0.185 0.055 140.418);
--chart-2: oklch(0.146 0.061 324.347);
--chart-3: oklch(0.146 0.061 324.347);
--chart-4: oklch(0.187 0.081 323.852);
--chart-5: oklch(0.186 0.057 140.348);
}