Jolly is a shadcn/ui theme built around a green primary color (#9bd49b) with muted light green accents (#c4d9c4). The light mode uses a neutral background (#f6fdf6). Dark mode keeps the green primary (#9bd49b) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdf6mintcream | #010401black |
| Foreground | #010901black | #fcfdfcwhite |
| Card | #f2fdf2honeydew | #030703black |
| Card foreground | #010401black | #ffffffwhite |
| Popover | #f2fdf2honeydew | #030703black |
| Popover foreground | #010401black | #ffffffwhite |
| Primary | #9bd49bdarkseagreen | #9bd49bdarkseagreen |
| Primary foreground | #122b12black | #122b12black |
| Secondary | #dce4dcgainsboro | #2e382edarkslategray |
| Secondary foreground | #3e513edarkslategray | #c7d1c7lightgrey |
| Muted | #dfe2dfgainsboro | #1d201dblack |
| Muted foreground | #567156dimgray | #8ea98edarkseagreen |
| Accent | #c4d9c4lightgrey | #3a503adarkslategray |
| Accent foreground | #2a412adarkslategray | #d9e3d9gainsboro |
| Destructive | #790a02maroon | #fb1404red |
| Destructive foreground | #feb4aflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9bd49bdarkseagreen | #9bd49bdarkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.57:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 8.91:1 | AAA |
| Secondary button | 6.62:1 | AA |
| Muted text | 4.13:1 | AA Large |
| Accent | 7.46:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 8.91:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 6.68:1 | AA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Jolly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.012 145.484);
--foreground: oklch(0.124 0.031 143.427);
--muted: oklch(0.91 0.006 145.524);
--muted-foreground: oklch(0.52 0.054 144.747);
--popover: oklch(0.982 0.018 145.436);
--popover-foreground: oklch(0.098 0.024 143.427);
--card: oklch(0.982 0.018 145.436);
--card-foreground: oklch(0.098 0.024 143.427);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.816 0.099 144.605);
--primary-foreground: oklch(0.261 0.054 143.84);
--secondary: oklch(0.912 0.014 145.462);
--secondary-foreground: oklch(0.412 0.038 144.84);
--accent: oklch(0.864 0.037 145.247);
--accent-foreground: oklch(0.35 0.05 144.417);
--destructive: oklch(0.366 0.143 30.28);
--destructive-foreground: oklch(0.838 0.087 23.664);
--ring: oklch(0.816 0.099 144.605);
--chart-1: oklch(0.816 0.099 144.605);
--chart-2: oklch(0.912 0.014 145.462);
--chart-3: oklch(0.864 0.037 145.247);
--chart-4: oklch(0.934 0.01 145.494);
--chart-5: oklch(0.819 0.106 144.536);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.015 144.294);
--foreground: oklch(0.993 0.003 145.557);
--muted: oklch(0.24 0.009 145.296);
--muted-foreground: oklch(0.707 0.05 145.018);
--popover: oklch(0.121 0.019 144.294);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.019 144.294);
--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.816 0.099 144.605);
--primary-foreground: oklch(0.261 0.054 143.84);
--secondary: oklch(0.328 0.022 145.042);
--secondary-foreground: oklch(0.85 0.018 145.417);
--accent: oklch(0.406 0.045 144.68);
--accent-foreground: oklch(0.905 0.018 145.423);
--destructive: oklch(0.625 0.251 29.76);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.816 0.099 144.605);
--chart-1: oklch(0.816 0.099 144.605);
--chart-2: oklch(0.328 0.022 145.042);
--chart-3: oklch(0.406 0.045 144.68);
--chart-4: oklch(0.359 0.025 145.027);
--chart-5: oklch(0.819 0.106 144.536);
}