Gleeful for shadcn/ui

Gleeful is a shadcn/ui theme built around a muted teal primary color (#b1c3c4) with muted yellow accents (#c3c4b1). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted teal primary (#b1c3c4) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#050a0ablack
Foreground
#030c0cblack
#f6f9f9whitesmoke
Card
#fcfdfdwhite
#050a0ablack
Card foreground
#030c0cblack
#f6f9f9whitesmoke
Popover
#fcfdfdwhite
#050a0ablack
Popover foreground
#030c0cblack
#f6f9f9whitesmoke
Primary
#b1c3c4silver
#b1c3c4silver
Primary foreground
#1d2526black
#1d2526black
Secondary
#c4b1c3silver
#c4b1c3silver
Secondary foreground
#261d25black
#261d25black
Muted
#ecdaeblavender
#251324black
Muted foreground
#524751darkslategray
#b8adb7darkgray
Accent
#c3c4b1silver
#c3c4b1silver
Accent foreground
#25261dblack
#25261dblack
Destructive
#6d2d08saddlebrown
#f07b38coral
Destructive foreground
#f9caaepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b1c3c4silver
#b1c3c4silver

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button8.53:1AAA
Secondary button8.07:1AAA
Muted text6.64:1AA
Accent8.61:1AAA
Destructive6.92:1AA
Dark mode
Text on background18.80:1AAA
Text on card18.80:1AAA
Primary button8.53:1AAA
Secondary button8.07:1AAA
Muted text8.08:1AAA
Accent8.61:1AAA
Destructive7.61:1AAA

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.002 199.579);
  --foreground: oklch(0.143 0.016 197.833);
  --muted: oklch(0.908 0.029 326.817);
  --muted-foreground: oklch(0.413 0.022 326.99);
  --popover: oklch(0.994 0.002 199.579);
  --popover-foreground: oklch(0.143 0.016 197.833);
  --card: oklch(0.994 0.002 199.579);
  --card-foreground: oklch(0.143 0.016 197.833);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.804 0.02 199.271);
  --primary-foreground: oklch(0.258 0.013 198.988);
  --secondary: oklch(0.781 0.034 326.908);
  --secondary-foreground: oklch(0.244 0.022 327.279);
  --accent: oklch(0.814 0.026 108.527);
  --accent-foreground: oklch(0.264 0.017 109.058);
  --destructive: oklch(0.382 0.102 45.374);
  --destructive-foreground: oklch(0.872 0.065 51.629);
  --ring: oklch(0.804 0.02 199.271);
  --chart-1: oklch(0.804 0.02 199.271);
  --chart-2: oklch(0.781 0.034 326.908);
  --chart-3: oklch(0.814 0.026 108.527);
  --chart-4: oklch(0.806 0.03 326.855);
  --chart-5: oklch(0.807 0.025 199.208);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.01 198.28);
  --foreground: oklch(0.979 0.003 199.566);
  --muted: oklch(0.22 0.041 328.018);
  --muted-foreground: oklch(0.76 0.019 326.754);
  --popover: oklch(0.139 0.01 198.28);
  --popover-foreground: oklch(0.979 0.003 199.566);
  --card: oklch(0.139 0.01 198.28);
  --card-foreground: oklch(0.979 0.003 199.566);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.804 0.02 199.271);
  --primary-foreground: oklch(0.258 0.013 198.988);
  --secondary: oklch(0.781 0.034 326.908);
  --secondary-foreground: oklch(0.244 0.022 327.279);
  --accent: oklch(0.814 0.026 108.527);
  --accent-foreground: oklch(0.264 0.017 109.058);
  --destructive: oklch(0.707 0.164 47.616);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.804 0.02 199.271);
  --chart-1: oklch(0.804 0.02 199.271);
  --chart-2: oklch(0.781 0.034 326.908);
  --chart-3: oklch(0.814 0.026 108.527);
  --chart-4: oklch(0.806 0.03 326.855);
  --chart-5: oklch(0.807 0.025 199.208);
}