Pudding for shadcn/ui

Pudding is a shadcn/ui theme built around a deep yellow primary color (#636221) with deep purple accents (#622163). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep yellow primary (#636221) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefefbwhite
#000000black
Foreground
#040401black
#f9f9f6whitesmoke
Card
#fcfcf7snow
#030303black
Card foreground
#000000black
#fbfbf9snow
Popover
#fcfcf7snow
#030303black
Popover foreground
#000000black
#fbfbf9snow
Primary
#636221darkolivegreen
#636221darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#216362darkslategray
#216362darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3e8e7gainsboro
#171c1bblack
Muted foreground
#4d5b5bdimgray
#a4b2b1darkgray
Accent
#622163indigo
#622163indigo
Accent foreground
#edc9edgainsboro
#edc9edgainsboro
Destructive
#771b04maroon
#f83c0dorangered
Destructive foreground
#fdbfb0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#636221darkolivegreen
#636221darkolivegreen

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.46:1AAA
Primary button6.32:1AA
Secondary button6.89:1AA
Muted text5.71:1AA
Accent7.36:1AAA
Destructive6.84:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.95:1AAA
Primary button6.32:1AA
Secondary button6.89:1AA
Muted text7.88:1AAA
Accent7.36:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 105.675);
  --foreground: oklch(0.107 0.018 108.505);
  --muted: oklch(0.926 0.004 195.891);
  --muted-foreground: oklch(0.459 0.017 195.349);
  --popover: oklch(0.991 0.006 105.733);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.006 105.733);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.485 0.086 108.297);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.46 0.066 193.549);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.375 0.128 327.082);
  --accent-foreground: oklch(0.878 0.061 325.572);
  --destructive: oklch(0.375 0.13 34.227);
  --destructive-foreground: oklch(0.857 0.074 34.462);
  --ring: oklch(0.485 0.086 108.297);
  --chart-1: oklch(0.485 0.086 108.297);
  --chart-2: oklch(0.46 0.066 193.549);
  --chart-3: oklch(0.375 0.128 327.082);
  --chart-4: oklch(0.496 0.071 193.526);
  --chart-5: oklch(0.491 0.09 108.351);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.005 105.703);
  --muted: oklch(0.22 0.006 195.493);
  --muted-foreground: oklch(0.752 0.015 195.627);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.988 0.003 105.674);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.988 0.003 105.674);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.485 0.086 108.297);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.46 0.066 193.549);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.375 0.128 327.082);
  --accent-foreground: oklch(0.878 0.061 325.572);
  --destructive: oklch(0.64 0.228 33.403);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.485 0.086 108.297);
  --chart-1: oklch(0.485 0.086 108.297);
  --chart-2: oklch(0.46 0.066 193.549);
  --chart-3: oklch(0.375 0.128 327.082);
  --chart-4: oklch(0.496 0.071 193.526);
  --chart-5: oklch(0.491 0.09 108.351);
}