Worrisome is a shadcn/ui theme built around a red primary color (#dd2229) with indigo accents (#2229dd). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#dd2229) on a red-tinted background (#0e0707).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0e0707black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fefbfbsnow | #0e0707black |
| Card foreground | #040101black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #0e0707black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #dd2229crimson | #dd2229crimson |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #29dd22limegreen | #29dd22limegreen |
| Secondary foreground | #082c07black | #082c07black |
| Muted | #e5f1e5beige | #0f1a0eblack |
| Muted foreground | #394739darkslategray | #b9c6b8silver |
| Accent | #2229ddmediumblue | #2229ddmediumblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c93803firebrick | #fb4909orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dd2229crimson | #dd2229crimson |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 4.85:1 | AA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 8.42:1 | AAA |
| Accent | 8.67:1 | AAA |
| Destructive | 5.19:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 4.85:1 | AA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 10.05:1 | AAA |
| Accent | 8.67:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Worrisome in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 14.857);
--foreground: oklch(0.083 0.014 17.323);
--muted: oklch(0.945 0.02 144.483);
--muted-foreground: oklch(0.38 0.029 144.108);
--popover: oklch(0.99 0.004 14.857);
--popover-foreground: oklch(0.083 0.014 17.323);
--card: oklch(0.99 0.004 14.857);
--card-foreground: oklch(0.083 0.014 17.323);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.576 0.217 26.349);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.78 0.253 142.418);
--secondary-foreground: oklch(0.259 0.074 142.532);
--accent: oklch(0.44 0.257 268.195);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.555 0.189 35.961);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.576 0.217 26.349);
--chart-1: oklch(0.576 0.217 26.349);
--chart-2: oklch(0.78 0.253 142.418);
--chart-3: oklch(0.44 0.257 268.195);
--chart-4: oklch(0.789 0.247 142.461);
--chart-5: oklch(0.581 0.223 26.76);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.013 16.279);
--foreground: oklch(0.992 0.001 14.801);
--muted: oklch(0.204 0.028 143.673);
--muted-foreground: oklch(0.813 0.024 144.423);
--popover: oklch(0.138 0.013 16.279);
--popover-foreground: oklch(0.992 0.001 14.801);
--card: oklch(0.138 0.013 16.279);
--card-foreground: oklch(0.992 0.001 14.801);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.576 0.217 26.349);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.78 0.253 142.418);
--secondary-foreground: oklch(0.259 0.074 142.532);
--accent: oklch(0.44 0.257 268.195);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.658 0.222 36.019);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.576 0.217 26.349);
--chart-1: oklch(0.576 0.217 26.349);
--chart-2: oklch(0.78 0.253 142.418);
--chart-3: oklch(0.44 0.257 268.195);
--chart-4: oklch(0.789 0.247 142.461);
--chart-5: oklch(0.581 0.223 26.76);
}