Jolly is a shadcn/ui theme built around a near-black primary color (#0a0a0b) with neutral gray accents (#cccccc). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0a0a0b) on a purple-tinted background (#0d070e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d070eblack |
| Foreground | #040104black | #fbf9fbsnow |
| Card | #ffffffwhite | #0d070eblack |
| Card foreground | #040104black | #fbf9fbsnow |
| Popover | #ffffffwhite | #0d070eblack |
| Popover foreground | #040104black | #fbf9fbsnow |
| Primary | #0a0a0bblack | #0a0a0bblack |
| Primary foreground | #a6a0a6darkgray | #a6a0a6darkgray |
| Secondary | #cccccclightgrey | #1d1b1dblack |
| Secondary foreground | #333333darkslategray | #b8b1b9silver |
| Muted | #dfd8d8gainsboro | #262027darkslategray |
| Muted foreground | #513e3edarkslategray | #c0aec1silver |
| Accent | #cccccclightgrey | #1d1b1dblack |
| Accent foreground | #333333darkslategray | #b8b1b9silver |
| Destructive | #6f1e06maroon | #e9400corangered |
| Destructive foreground | #fbbfadlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a0a0bblack | #0a0a0bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.76:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 7.86:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Jolly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.025 325.791);
--muted: oklch(0.888 0.007 17.29);
--muted-foreground: oklch(0.384 0.026 18.35);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.084 0.025 325.791);
--card: oklch(1 0 180);
--card-foreground: oklch(0.084 0.025 325.791);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.145 0.002 323.687);
--primary-foreground: oklch(0.713 0.01 323.707);
--secondary: oklch(0.845 0 164.055);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(0.845 0 164.055);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.366 0.118 36.026);
--destructive-foreground: oklch(0.854 0.074 37.602);
--ring: oklch(0.145 0.002 323.687);
--chart-1: oklch(0.145 0.002 323.687);
--chart-2: oklch(0.845 0 164.055);
--chart-3: oklch(0.845 0 164.055);
--chart-4: oklch(0.869 0 165.964);
--chart-5: oklch(0.145 0.003 323.757);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.019 324.4);
--foreground: oklch(0.984 0.003 323.65);
--muted: oklch(0.255 0.015 323.93);
--muted-foreground: oklch(0.772 0.032 323.851);
--popover: oklch(0.141 0.019 324.4);
--popover-foreground: oklch(0.984 0.003 323.65);
--card: oklch(0.141 0.019 324.4);
--card-foreground: oklch(0.984 0.003 323.65);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.145 0.002 323.687);
--primary-foreground: oklch(0.713 0.01 323.707);
--secondary: oklch(0.225 0.007 323.788);
--secondary-foreground: oklch(0.769 0.013 323.723);
--accent: oklch(0.225 0.007 323.788);
--accent-foreground: oklch(0.769 0.013 323.723);
--destructive: oklch(0.618 0.212 34.9);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.145 0.002 323.687);
--chart-1: oklch(0.145 0.002 323.687);
--chart-2: oklch(0.225 0.007 323.788);
--chart-3: oklch(0.225 0.007 323.788);
--chart-4: oklch(0.257 0.008 323.8);
--chart-5: oklch(0.145 0.003 323.757);
}