Jittery is a shadcn/ui theme built around a muted deep blue primary color (#12131c) with muted deep green accents (#131c12). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted deep blue primary (#12131c) on a blue-tinted background (#05050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #05050ablack |
| Foreground | #02030eblack | #fcfcfdwhite |
| Card | #fbfbfeghostwhite | #05050ablack |
| Card foreground | #02030eblack | #fcfcfdwhite |
| Popover | #fbfbfeghostwhite | #05050ablack |
| Popover foreground | #02030eblack | #fcfcfdwhite |
| Primary | #12131cblack | #12131cblack |
| Primary foreground | #9fa2c1darkgray | #9fa2c1darkgray |
| Secondary | #1c1213black | #1c1213black |
| Secondary foreground | #c19fa2rosybrown | #c19fa2rosybrown |
| Muted | #f4e6e8linen | #190b0cblack |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #131c12black | #131c12black |
| Accent foreground | #a2c19fdarkseagreen | #a2c19fdarkseagreen |
| Destructive | #6a180bmaroon | #ea5039tomato |
| Destructive foreground | #f7bab1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #12131cblack | #12131cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 8.87:1 | AAA |
| Destructive | 7.21:1 | AAA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 8.87:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Jittery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 281.236);
--foreground: oklch(0.102 0.032 270.276);
--muted: oklch(0.937 0.015 10.439);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.99 0.003 281.236);
--popover-foreground: oklch(0.102 0.032 270.276);
--card: oklch(0.99 0.003 281.236);
--card-foreground: oklch(0.102 0.032 270.276);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.19 0.018 279.538);
--primary-foreground: oklch(0.72 0.046 280.194);
--secondary: oklch(0.195 0.017 12.079);
--secondary-foreground: oklch(0.733 0.041 11.369);
--accent: oklch(0.214 0.024 142.174);
--accent-foreground: oklch(0.779 0.059 142.315);
--destructive: oklch(0.348 0.118 31.66);
--destructive-foreground: oklch(0.842 0.072 28.616);
--ring: oklch(0.19 0.018 279.538);
--chart-1: oklch(0.19 0.018 279.538);
--chart-2: oklch(0.195 0.017 12.079);
--chart-3: oklch(0.214 0.024 142.174);
--chart-4: oklch(0.226 0.022 12.316);
--chart-5: oklch(0.188 0.021 279.243);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.014 277.913);
--foreground: oklch(0.991 0.001 281.268);
--muted: oklch(0.171 0.024 13.408);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0.12 0.014 277.913);
--popover-foreground: oklch(0.991 0.001 281.268);
--card: oklch(0.12 0.014 277.913);
--card-foreground: oklch(0.991 0.001 281.268);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.19 0.018 279.538);
--primary-foreground: oklch(0.72 0.046 280.194);
--secondary: oklch(0.195 0.017 12.079);
--secondary-foreground: oklch(0.733 0.041 11.369);
--accent: oklch(0.214 0.024 142.174);
--accent-foreground: oklch(0.779 0.059 142.315);
--destructive: oklch(0.64 0.194 31.462);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.19 0.018 279.538);
--chart-1: oklch(0.19 0.018 279.538);
--chart-2: oklch(0.195 0.017 12.079);
--chart-3: oklch(0.214 0.024 142.174);
--chart-4: oklch(0.226 0.022 12.316);
--chart-5: oklch(0.188 0.021 279.243);
}