Whelp for shadcn/ui

Whelp is a shadcn/ui theme built around a vivid blue primary color (#1154e4) with muted light blue accents (#d8dce3). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the vivid blue primary (#1154e4) on a blue-tinted background (#06090e).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#06090eblack
Foreground
#020408black
#f5f6fawhitesmoke
Card
#f3f6fcaliceblue
#080b12black
Card foreground
#010204black
#f8f9fcghostwhite
Popover
#f7f9fdghostwhite
#06090eblack
Popover foreground
#020408black
#f5f6fawhitesmoke
Primary
#1154e4royalblue
#1154e4royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d8dce3gainsboro
#2f3237darkslategray
Secondary foreground
#394151darkslategray
#c8cbd0lightgrey
Muted
#e6e9eflavender
#101319black
Muted foreground
#5e6064dimgray
#9b9da1darkgray
Accent
#d8dce3gainsboro
#2f3237darkslategray
Accent foreground
#394151darkslategray
#c8cbd0lightgrey
Destructive
#992100darkred
#ff5729tomato
Destructive foreground
#ffd7ccbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1154e4royalblue
#1154e4royalblue

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.14:1AAA
Primary button6.17:1AA
Secondary button7.44:1AAA
Muted text5.18:1AA
Accent7.44:1AAA
Destructive6.15:1AA
Dark mode
Text on background18.47:1AAA
Text on card18.70:1AAA
Primary button6.17:1AA
Secondary button7.95:1AAA
Muted text6.85:1AA
Accent7.95:1AAA
Destructive6.65:1AA

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 265.981);
  --foreground: oklch(0.105 0.016 256.887);
  --muted: oklch(0.934 0.008 265.965);
  --muted-foreground: oklch(0.488 0.007 265.941);
  --popover: oklch(0.981 0.006 265.981);
  --popover-foreground: oklch(0.105 0.016 256.887);
  --card: oklch(0.972 0.008 265.967);
  --card-foreground: oklch(0.083 0.013 256.887);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.507 0.227 262.736);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.893 0.011 265.947);
  --secondary-foreground: oklch(0.373 0.029 265.477);
  --accent: oklch(0.893 0.011 265.947);
  --accent-foreground: oklch(0.373 0.029 265.477);
  --destructive: oklch(0.447 0.16 34.19);
  --destructive-foreground: oklch(0.91 0.047 35.949);
  --ring: oklch(0.507 0.227 262.736);
  --chart-1: oklch(0.507 0.227 262.736);
  --chart-2: oklch(0.893 0.011 265.947);
  --chart-3: oklch(0.893 0.011 265.947);
  --chart-4: oklch(0.918 0.009 265.964);
  --chart-5: oklch(0.508 0.233 262.779);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.013 262.457);
  --foreground: oklch(0.974 0.005 265.984);
  --muted: oklch(0.186 0.013 265.56);
  --muted-foreground: oklch(0.696 0.006 265.966);
  --popover: oklch(0.138 0.013 262.457);
  --popover-foreground: oklch(0.974 0.005 265.984);
  --card: oklch(0.149 0.015 264.469);
  --card-foreground: oklch(0.983 0.003 265.992);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.507 0.227 262.736);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.315 0.011 265.823);
  --secondary-foreground: oklch(0.84 0.008 265.961);
  --accent: oklch(0.315 0.011 265.823);
  --accent-foreground: oklch(0.84 0.008 265.961);
  --destructive: oklch(0.68 0.212 35.579);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.507 0.227 262.736);
  --chart-1: oklch(0.507 0.227 262.736);
  --chart-2: oklch(0.315 0.011 265.823);
  --chart-3: oklch(0.315 0.011 265.823);
  --chart-4: oklch(0.344 0.012 265.816);
  --chart-5: oklch(0.508 0.233 262.779);
}