Jagged is a shadcn/ui theme built around a blue primary color (#416786) with green accents (#678641). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#416786) on a blue-tinted background (#05080b).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafcghostwhite | #05080bblack |
| Foreground | #010509black | #ffffffwhite |
| Card | #f8fafcghostwhite | #05080bblack |
| Card foreground | #010509black | #ffffffwhite |
| Popover | #f8fafcghostwhite | #05080bblack |
| Popover foreground | #010509black | #ffffffwhite |
| Primary | #416786darkslateblue | #416786darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #864167dimgray | #864167dimgray |
| Secondary foreground | #fdfcfdwhite | #fdfcfdwhite |
| Muted | #f0e0e9mistyrose | #1f0f18black |
| Muted foreground | #544a50darkslategray | #b5abb0darkgray |
| Accent | #678641olivedrab | #678641olivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bb3302firebrick | #fd6730tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #416786darkslateblue | #416786darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 5.99:1 | AA |
| Secondary button | 6.92:1 | AA |
| Muted text | 6.68:1 | AA |
| Accent | 4.13:1 | AA Large |
| Destructive | 5.85:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 5.99:1 | AA |
| Secondary button | 6.92:1 | AA |
| Muted text | 8.27:1 | AAA |
| Accent | 4.13:1 | AA Large |
| Destructive | 7.14:1 | AAA |
Paste this into your globals.css to use Jagged in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.004 242.243);
--foreground: oklch(0.113 0.016 232.333);
--muted: oklch(0.922 0.022 343.184);
--muted-foreground: oklch(0.421 0.015 343.476);
--popover: oklch(0.984 0.004 242.243);
--popover-foreground: oklch(0.113 0.016 232.333);
--card: oklch(0.984 0.004 242.243);
--card-foreground: oklch(0.113 0.016 232.333);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.498 0.067 244.379);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.475 0.106 347.745);
--secondary-foreground: oklch(0.991 0.002 342.675);
--accent: oklch(0.58 0.104 129.164);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.526 0.179 36.029);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.498 0.067 244.379);
--chart-1: oklch(0.498 0.067 244.379);
--chart-2: oklch(0.475 0.106 347.745);
--chart-3: oklch(0.58 0.104 129.164);
--chart-4: oklch(0.5 0.113 347.791);
--chart-5: oklch(0.499 0.072 244.631);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.01 236.964);
--foreground: oklch(1 0 180);
--muted: oklch(0.195 0.032 346.354);
--muted-foreground: oklch(0.751 0.013 343.039);
--popover: oklch(0.131 0.01 236.964);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.01 236.964);
--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.498 0.067 244.379);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.475 0.106 347.745);
--secondary-foreground: oklch(0.991 0.002 342.675);
--accent: oklch(0.58 0.104 129.164);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.695 0.195 38.966);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.498 0.067 244.379);
--chart-1: oklch(0.498 0.067 244.379);
--chart-2: oklch(0.475 0.106 347.745);
--chart-3: oklch(0.58 0.104 129.164);
--chart-4: oklch(0.5 0.113 347.791);
--chart-5: oklch(0.499 0.072 244.631);
}