Jolly for shadcn/ui

Jolly is a shadcn/ui theme built around a teal primary color (#69bf9e) with orange accents (#bf9e69). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#69bf9e) on a neutral background (#040705).

Color palette

TokenLightDark
Background
#fbfefdwhite
#040705black
Foreground
#02120cblack
#f8fbfamintcream
Card
#f7fdfbmintcream
#050a08black
Card foreground
#020e09black
#fcfdfdwhite
Popover
#f7fdfbmintcream
#050a08black
Popover foreground
#020e09black
#fcfdfdwhite
Primary
#69bf9emediumaquamarine
#69bf9emediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#9e69bfmediumpurple
#9e69bfmediumpurple
Secondary foreground
#000000black
#000000black
Muted
#f1ecf3whitesmoke
#100c13black
Muted foreground
#443a4adarkslategray
#bfb5c5silver
Accent
#bf9e69darkkhaki
#bf9e69darkkhaki
Accent foreground
#000000black
#000000black
Destructive
#8a270fsaddlebrown
#e24018orangered
Destructive foreground
#fad9d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#69bf9emediumaquamarine
#69bf9emediumaquamarine

Contrast

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

Light mode
Text on background18.88:1AAA
Text on card19.02:1AAA
Primary button9.52:1AAA
Secondary button5.22:1AA
Muted text9.25:1AAA
Accent8.29:1AAA
Destructive6.65:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.55:1AAA
Primary button9.52:1AAA
Secondary button5.22:1AA
Muted text9.81:1AAA
Accent8.29:1AAA
Destructive4.20: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.994 0.003 171.502);
  --foreground: oklch(0.165 0.028 168.397);
  --muted: oklch(0.949 0.01 312.91);
  --muted-foreground: oklch(0.366 0.03 312.434);
  --popover: oklch(0.988 0.006 171.41);
  --popover-foreground: oklch(0.146 0.024 170.862);
  --card: oklch(0.988 0.006 171.41);
  --card-foreground: oklch(0.146 0.024 170.862);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.74 0.097 166.879);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.611 0.137 311.342);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.716 0.08 78.837);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.427 0.138 34.549);
  --destructive-foreground: oklch(0.911 0.039 34.318);
  --ring: oklch(0.74 0.097 166.879);
  --chart-1: oklch(0.74 0.097 166.879);
  --chart-2: oklch(0.611 0.137 311.342);
  --chart-3: oklch(0.716 0.08 78.837);
  --chart-4: oklch(0.638 0.127 311.563);
  --chart-5: oklch(0.747 0.103 166.531);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.009 171.745);
  --foreground: oklch(0.987 0.003 171.494);
  --muted: oklch(0.162 0.016 312.311);
  --muted-foreground: oklch(0.785 0.025 312.772);
  --popover: oklch(0.138 0.01 171.745);
  --popover-foreground: oklch(0.993 0.002 171.543);
  --card: oklch(0.138 0.01 171.745);
  --card-foreground: oklch(0.993 0.002 171.543);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.74 0.097 166.879);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.611 0.137 311.342);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.716 0.08 78.837);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.608 0.205 34.219);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.74 0.097 166.879);
  --chart-1: oklch(0.74 0.097 166.879);
  --chart-2: oklch(0.611 0.137 311.342);
  --chart-3: oklch(0.716 0.08 78.837);
  --chart-4: oklch(0.638 0.127 311.563);
  --chart-5: oklch(0.747 0.103 166.531);
}