Whelp for shadcn/ui

Whelp is a shadcn/ui theme built around a violet primary color (#582790) with green accents (#279058). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#582790) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#020104black
Foreground
#000000black
#f7f6f9whitesmoke
Card
#faf8fcghostwhite
#020104black
Card foreground
#000000black
#f7f6f9whitesmoke
Popover
#faf8fcghostwhite
#020104black
Popover foreground
#000000black
#f7f6f9whitesmoke
Primary
#582790rebeccapurple
#582790rebeccapurple
Primary foreground
#f4effbwhitesmoke
#f4effbwhitesmoke
Secondary
#905827sienna
#905827sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4f2f0whitesmoke
#0f0d0bblack
Muted foreground
#5b544ddimgray
#b2aaa4darkgray
Accent
#279058seagreen
#279058seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d2360ffirebrick
#ee3d11orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#582790rebeccapurple
#582790rebeccapurple

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button8.77:1AAA
Secondary button5.79:1AA
Muted text6.67:1AA
Accent4.01:1AA Large
Destructive4.92:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.31:1AAA
Primary button8.77:1AAA
Secondary button5.79:1AA
Muted text8.49:1AAA
Accent4.01:1AA Large
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 307.036);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.963 0.003 64.044);
  --muted-foreground: oklch(0.45 0.014 63.688);
  --popover: oklch(0.981 0.006 307.036);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.006 307.036);
  --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.402 0.163 300.467);
  --primary-foreground: oklch(0.96 0.016 306.902);
  --secondary: oklch(0.515 0.097 59.009);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.581 0.127 155.158);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.569 0.198 33.819);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.402 0.163 300.467);
  --chart-1: oklch(0.402 0.163 300.467);
  --chart-2: oklch(0.515 0.097 59.009);
  --chart-3: oklch(0.581 0.127 155.158);
  --chart-4: oklch(0.545 0.104 58.917);
  --chart-5: oklch(0.4 0.169 299.95);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.08 0.018 308.615);
  --foreground: oklch(0.974 0.005 307.049);
  --muted: oklch(0.159 0.005 63.642);
  --muted-foreground: oklch(0.743 0.012 63.88);
  --popover: oklch(0.08 0.018 308.615);
  --popover-foreground: oklch(0.974 0.005 307.049);
  --card: oklch(0.08 0.018 308.615);
  --card-foreground: oklch(0.974 0.005 307.049);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.402 0.163 300.467);
  --primary-foreground: oklch(0.96 0.016 306.902);
  --secondary: oklch(0.515 0.097 59.009);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.581 0.127 155.158);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.625 0.219 33.719);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.402 0.163 300.467);
  --chart-1: oklch(0.402 0.163 300.467);
  --chart-2: oklch(0.515 0.097 59.009);
  --chart-3: oklch(0.581 0.127 155.158);
  --chart-4: oklch(0.545 0.104 58.917);
  --chart-5: oklch(0.4 0.169 299.95);
}