Jolly for shadcn/ui

Jolly is a shadcn/ui theme built around a vivid purple primary color (#e920bd) with muted light purple accents (#d3c5d0). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the vivid purple primary (#e920bd) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#fdf7fbsnow
#030203black
Foreground
#050104black
#fbf9fasnow
Card
#fdf7fbsnow
#030203black
Card foreground
#050104black
#fbf9fasnow
Popover
#fdf7fbsnow
#030203black
Popover foreground
#050104black
#fbf9fasnow
Primary
#e920bddeeppink
#e920bddeeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e0dcdfgainsboro
#161315black
Secondary foreground
#484147darkslategray
#b4a7b1darkgray
Muted
#ebe6e9lavender
#191418black
Muted foreground
#6f5d6bdimgray
#a2909edarkgray
Accent
#d3c5d0thistle
#2d202adarkslategray
Accent foreground
#3a2c37darkslategray
#cab4c5silver
Destructive
#90130edarkred
#ea302acrimson
Destructive foreground
#fbd6d5mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e920bddeeppink
#e920bddeeppink

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.64:1AAA
Text on card19.64:1AAA
Primary button3.88:1AA Large
Secondary button7.29:1AAA
Muted text4.91:1AA
Accent7.95:1AAA
Destructive6.87:1AA
Dark mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button3.88:1AA Large
Secondary button8.00:1AAA
Muted text6.05:1AA
Accent8.04:1AAA
Destructive4.24:1AA Large

CSS variables

Paste this into your globals.css to use Jolly in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 332.743);
  --foreground: oklch(0.082 0.027 333.857);
  --muted: oklch(0.929 0.008 332.743);
  --muted-foreground: oklch(0.501 0.032 333.578);
  --popover: oklch(0.982 0.008 332.743);
  --popover-foreground: oklch(0.082 0.027 333.857);
  --card: oklch(0.982 0.008 332.743);
  --card-foreground: oklch(0.082 0.027 333.857);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.64 0.264 339.672);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.898 0.005 332.703);
  --secondary-foreground: oklch(0.386 0.013 333.125);
  --accent: oklch(0.838 0.02 332.989);
  --accent-foreground: oklch(0.314 0.026 333.851);
  --destructive: oklch(0.419 0.159 28.702);
  --destructive-foreground: oklch(0.908 0.041 20.274);
  --ring: oklch(0.64 0.264 339.672);
  --chart-1: oklch(0.64 0.264 339.672);
  --chart-2: oklch(0.898 0.005 332.703);
  --chart-3: oklch(0.838 0.02 332.989);
  --chart-4: oklch(0.922 0.004 332.681);
  --chart-5: oklch(0.645 0.269 339.887);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.011 333.14);
  --foreground: oklch(0.984 0.002 332.652);
  --muted: oklch(0.201 0.011 333.448);
  --muted-foreground: oklch(0.674 0.03 333.288);
  --popover: oklch(0.088 0.011 333.14);
  --popover-foreground: oklch(0.984 0.002 332.652);
  --card: oklch(0.088 0.011 333.14);
  --card-foreground: oklch(0.984 0.002 332.652);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.64 0.264 339.672);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.191 0.007 333.196);
  --secondary-foreground: oklch(0.742 0.021 333.043);
  --accent: oklch(0.262 0.027 334.115);
  --accent-foreground: oklch(0.795 0.034 333.261);
  --destructive: oklch(0.609 0.221 28.154);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.64 0.264 339.672);
  --chart-1: oklch(0.64 0.264 339.672);
  --chart-2: oklch(0.191 0.007 333.196);
  --chart-3: oklch(0.262 0.027 334.115);
  --chart-4: oklch(0.224 0.01 333.268);
  --chart-5: oklch(0.645 0.269 339.887);
}