Whale for shadcn/ui

Whale is a shadcn/ui theme built around a muted yellow primary color (#d0caaf) with muted purple accents (#caafd0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#d0caaf) on a yellow-tinted background (#0b0a04).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0a04black
Foreground
#0e0b02black
#fbfbf9snow
Card
#ffffffwhite
#0b0a04black
Card foreground
#0e0b02black
#fbfbf9snow
Popover
#ffffffwhite
#0b0a04black
Popover foreground
#0e0b02black
#fbfbf9snow
Primary
#d0caafsilver
#d0caafsilver
Primary foreground
#302d1cdarkslategray
#302d1cdarkslategray
Secondary
#afd0calightsteelblue
#afd0calightsteelblue
Secondary foreground
#1c302ddarkslategray
#1c302ddarkslategray
Muted
#dae7e5gainsboro
#182523black
Muted foreground
#5c6a68dimgray
#95a3a0darkgray
Accent
#caafd0thistle
#caafd0thistle
Accent foreground
#2d1c30darkslategray
#2d1c30darkslategray
Destructive
#a21111firebrick
#e71818crimson
Destructive foreground
#fde8e8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0caafsilver
#d0caafsilver

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.67:1AAA
Primary button8.37:1AAA
Secondary button8.39:1AAA
Muted text4.45:1AA Large
Accent7.96:1AAA
Destructive6.83:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button8.37:1AAA
Secondary button8.39:1AAA
Muted text6.02:1AA
Accent7.96:1AAA
Destructive4.62:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.15 0.025 100.415);
  --muted: oklch(0.918 0.015 183.879);
  --muted-foreground: oklch(0.513 0.017 183.384);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.15 0.025 100.415);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.15 0.025 100.415);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.836 0.037 96.668);
  --primary-foreground: oklch(0.294 0.028 97.018);
  --secondary: oklch(0.831 0.036 183.1);
  --secondary-foreground: oklch(0.292 0.027 181.56);
  --accent: oklch(0.787 0.055 320.052);
  --accent-foreground: oklch(0.257 0.043 320.099);
  --destructive: oklch(0.453 0.176 28.065);
  --destructive-foreground: oklch(0.947 0.023 17.558);
  --ring: oklch(0.836 0.037 96.668);
  --chart-1: oklch(0.836 0.037 96.668);
  --chart-2: oklch(0.831 0.036 183.1);
  --chart-3: oklch(0.787 0.055 320.052);
  --chart-4: oklch(0.852 0.032 183.279);
  --chart-5: oklch(0.84 0.041 96.712);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.015 99.394);
  --foreground: oklch(0.987 0.003 96.203);
  --muted: oklch(0.253 0.019 182.103);
  --muted-foreground: oklch(0.702 0.016 183.686);
  --popover: oklch(0.143 0.015 99.394);
  --popover-foreground: oklch(0.987 0.003 96.203);
  --card: oklch(0.143 0.015 99.394);
  --card-foreground: oklch(0.987 0.003 96.203);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.836 0.037 96.668);
  --primary-foreground: oklch(0.294 0.028 97.018);
  --secondary: oklch(0.831 0.036 183.1);
  --secondary-foreground: oklch(0.292 0.027 181.56);
  --accent: oklch(0.787 0.055 320.052);
  --accent-foreground: oklch(0.257 0.043 320.099);
  --destructive: oklch(0.589 0.232 28.341);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.836 0.037 96.668);
  --chart-1: oklch(0.836 0.037 96.668);
  --chart-2: oklch(0.831 0.036 183.1);
  --chart-3: oklch(0.787 0.055 320.052);
  --chart-4: oklch(0.852 0.032 183.279);
  --chart-5: oklch(0.84 0.041 96.712);
}