Jolly is a shadcn/ui theme built around a light green primary color (#e7f9e2) with muted light green accents (#e7ebe5). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the light green primary (#e7f9e2) on a green-tinted background (#060c03).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #060c03black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f5fcf2honeydew | #071004black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fdf7mintcream | #060c03black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #e7f9e2beige | #e7f9e2beige |
| Primary foreground | #16370cdarkgreen | #16370cdarkgreen |
| Secondary | #e7ebe5beige | #21291eblack |
| Secondary foreground | #4a5945darkslategray | #b8c7b3silver |
| Muted | #d8e2d4gainsboro | #202b1dblack |
| Muted foreground | #5d7057dimgray | #95a88fdarkseagreen |
| Accent | #e7ebe5beige | #21291eblack |
| Accent foreground | #4a5945darkslategray | #b8c7b3silver |
| Destructive | #b32100firebrick | #ff3305orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7f9e2beige | #e7f9e2beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 11.99:1 | AAA |
| Secondary button | 6.20:1 | AA |
| Muted text | 4.02:1 | AA Large |
| Accent | 6.20:1 | AA |
| Destructive | 6.73:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 11.99:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 8.45:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Jolly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.01 137.78);
--foreground: oklch(0 0 0);
--muted: oklch(0.902 0.022 137.805);
--muted-foreground: oklch(0.523 0.046 137.933);
--popover: oklch(0.989 0.01 137.78);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.015 137.789);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.962 0.036 137.828);
--primary-foreground: oklch(0.3 0.079 138.917);
--secondary: oklch(0.935 0.009 137.78);
--secondary-foreground: oklch(0.446 0.038 137.927);
--accent: oklch(0.935 0.009 137.78);
--accent-foreground: oklch(0.446 0.038 137.927);
--destructive: oklch(0.495 0.184 32.653);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.962 0.036 137.828);
--chart-1: oklch(0.962 0.036 137.828);
--chart-2: oklch(0.935 0.009 137.78);
--chart-3: oklch(0.935 0.009 137.78);
--chart-4: oklch(0.957 0.006 137.774);
--chart-5: oklch(0.963 0.037 137.831);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.025 136.164);
--foreground: oklch(1 0 180);
--muted: oklch(0.274 0.03 137.985);
--muted-foreground: oklch(0.711 0.043 137.872);
--popover: oklch(0.143 0.025 136.164);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.159 0.029 136.701);
--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.962 0.036 137.828);
--primary-foreground: oklch(0.3 0.079 138.917);
--secondary: oklch(0.27 0.022 137.922);
--secondary-foreground: oklch(0.812 0.032 137.832);
--accent: oklch(0.27 0.022 137.922);
--accent-foreground: oklch(0.812 0.032 137.832);
--destructive: oklch(0.646 0.241 32.325);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.962 0.036 137.828);
--chart-1: oklch(0.962 0.036 137.828);
--chart-2: oklch(0.27 0.022 137.922);
--chart-3: oklch(0.27 0.022 137.922);
--chart-4: oklch(0.303 0.026 137.932);
--chart-5: oklch(0.963 0.037 137.831);
}