Gleeful for shadcn/ui

Gleeful is a shadcn/ui theme built around a deep yellow primary color (#655420) with deep blue accents (#203165). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep yellow primary (#655420) on a neutral background (#080602).

Color palette

TokenLightDark
Background
#fefdfbsnow
#080602black
Foreground
#110e03black
#fbfbf9snow
Card
#fefdfbsnow
#080602black
Card foreground
#110e03black
#fbfbf9snow
Popover
#fefdfbsnow
#080602black
Popover foreground
#110e03black
#fbfbf9snow
Primary
#655420darkolivegreen
#655420darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#203165midnightblue
#203165midnightblue
Secondary foreground
#c9d2eegainsboro
#c9d2eegainsboro
Muted
#cfd4e2lightgrey
#1d2130darkslategray
Muted foreground
#5d6069dimgray
#9699a2darkgray
Accent
#203165midnightblue
#203165midnightblue
Accent foreground
#c9d2eegainsboro
#c9d2eegainsboro
Destructive
#b0400cfirebrick
#f06828chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#655420darkolivegreen
#655420darkolivegreen

Contrast

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

Light mode
Text on background18.98:1AAA
Text on card18.98:1AAA
Primary button7.43:1AAA
Secondary button8.25:1AAA
Muted text4.24:1AA Large
Accent8.25:1AAA
Destructive5.83:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button7.43:1AAA
Secondary button8.25:1AAA
Muted text5.60:1AA
Accent8.25:1AAA
Destructive6.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 91.432);
  --foreground: oklch(0.164 0.025 94.37);
  --muted: oklch(0.87 0.02 271.178);
  --muted-foreground: oklch(0.491 0.015 271.107);
  --popover: oklch(0.994 0.003 91.432);
  --popover-foreground: oklch(0.164 0.025 94.37);
  --card: oklch(0.994 0.003 91.432);
  --card-foreground: oklch(0.164 0.025 94.37);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.45 0.073 90.666);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.329 0.094 267.265);
  --secondary-foreground: oklch(0.865 0.04 270.923);
  --accent: oklch(0.329 0.094 267.265);
  --accent-foreground: oklch(0.865 0.04 270.923);
  --destructive: oklch(0.523 0.157 40.376);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.45 0.073 90.666);
  --chart-1: oklch(0.45 0.073 90.666);
  --chart-2: oklch(0.329 0.094 267.265);
  --chart-3: oklch(0.329 0.094 267.265);
  --chart-4: oklch(0.354 0.103 267.17);
  --chart-5: oklch(0.455 0.076 90.448);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.014 96.007);
  --foreground: oklch(0.987 0.003 91.431);
  --muted: oklch(0.252 0.028 270.049);
  --muted-foreground: oklch(0.682 0.014 271.216);
  --popover: oklch(0.125 0.014 96.007);
  --popover-foreground: oklch(0.987 0.003 91.431);
  --card: oklch(0.125 0.014 96.007);
  --card-foreground: oklch(0.987 0.003 91.431);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.45 0.073 90.666);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.329 0.094 267.265);
  --secondary-foreground: oklch(0.865 0.04 270.923);
  --accent: oklch(0.329 0.094 267.265);
  --accent-foreground: oklch(0.865 0.04 270.923);
  --destructive: oklch(0.677 0.183 42.221);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.45 0.073 90.666);
  --chart-1: oklch(0.45 0.073 90.666);
  --chart-2: oklch(0.329 0.094 267.265);
  --chart-3: oklch(0.329 0.094 267.265);
  --chart-4: oklch(0.354 0.103 267.17);
  --chart-5: oklch(0.455 0.076 90.448);
}