Jolly is a shadcn/ui theme built around a vivid red primary color (#af0409) with vivid teal accents (#04afa9). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid red primary (#af0409) on a red-tinted background (#0c0404).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0c0404black |
| Foreground | #040101black | #ffffffwhite |
| Card | #fefbfbsnow | #0c0404black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #fefbfbsnow | #0c0404black |
| Popover foreground | #040101black | #ffffffwhite |
| Primary | #af0409darkred | #af0409darkred |
| Primary foreground | #fee6e7mistyrose | #fee6e7mistyrose |
| Secondary | #04afa9lightseagreen | #04afa9lightseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1eaealavender | #151e1eblack |
| Muted foreground | #3e4c4bdarkslategray | #b3c1c1silver |
| Accent | #04afa9lightseagreen | #04afa9lightseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7f0301maroon | #f40501red |
| Destructive foreground | #ffb4b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #af0409darkred | #af0409darkred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.22:1 | AA |
| Secondary button | 2.72:1 | Fail |
| Muted text | 7.33:1 | AAA |
| Accent | 2.72:1 | Fail |
| Destructive | 6.50:1 | AA |
| Text on background | 20.33:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 6.22:1 | AA |
| Secondary button | 2.72:1 | Fail |
| Muted text | 9.14:1 | AAA |
| Accent | 2.72:1 | Fail |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Jolly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 14.833);
--foreground: oklch(0.081 0.016 18.029);
--muted: oklch(0.93 0.01 194.593);
--muted-foreground: oklch(0.403 0.018 193.989);
--popover: oklch(0.991 0.002 14.833);
--popover-foreground: oklch(0.081 0.016 18.029);
--card: oklch(0.991 0.002 14.833);
--card-foreground: oklch(0.081 0.016 18.029);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.475 0.193 28.305);
--primary-foreground: oklch(0.945 0.027 15.33);
--secondary: oklch(0.681 0.117 190.64);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.681 0.117 190.64);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.376 0.152 29.462);
--destructive-foreground: oklch(0.84 0.087 20.16);
--ring: oklch(0.475 0.193 28.305);
--chart-1: oklch(0.475 0.193 28.305);
--chart-2: oklch(0.681 0.117 190.64);
--chart-3: oklch(0.681 0.117 190.64);
--chart-4: oklch(0.724 0.124 190.617);
--chart-5: oklch(0.479 0.196 28.456);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.019 17.226);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.013 193.713);
--muted-foreground: oklch(0.8 0.015 194.438);
--popover: oklch(0.12 0.019 17.226);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.019 17.226);
--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.475 0.193 28.305);
--primary-foreground: oklch(0.945 0.027 15.33);
--secondary: oklch(0.681 0.117 190.64);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.681 0.117 190.64);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.608 0.248 29.336);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.475 0.193 28.305);
--chart-1: oklch(0.475 0.193 28.305);
--chart-2: oklch(0.681 0.117 190.64);
--chart-3: oklch(0.681 0.117 190.64);
--chart-4: oklch(0.724 0.124 190.617);
--chart-5: oklch(0.479 0.196 28.456);
}