Herb Robert Porpoise for shadcn/ui

Herb Robert Porpoise is a shadcn/ui theme built around a purple primary color (#d89ddd) with pink accents (#dd9dc1). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the purple primary (#d89ddd) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fcf8fcsnow
#070307black
Foreground
#040104black
#fdfcfdwhite
Card
#faf4faghostwhite
#0a050ablack
Card foreground
#000000black
#ffffffwhite
Popover
#faf4faghostwhite
#0a050ablack
Popover foreground
#000000black
#ffffffwhite
Primary
#d89dddplum
#d89dddplum
Primary foreground
#331335midnightblue
#331335midnightblue
Secondary
#b89dddplum
#b89dddplum
Secondary foreground
#211335midnightblue
#211335midnightblue
Muted
#d8d6dbgainsboro
#262429darkslategray
Muted foreground
#666369dimgray
#99969cdarkgray
Accent
#dd9dc1plum
#dd9dc1plum
Accent foreground
#351326black
#351326black
Destructive
#761d0amaroon
#ec3f18orangered
Destructive foreground
#f9c4b8lightpink
#ffffffwhite
Border
#efebefwhitesmoke
#1c161dblack
Input
#efebefwhitesmoke
#1c161dblack
Ring
#d89dddplum
#d89dddplum

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.43:1AAA
Primary button7.61:1AAA
Secondary button7.36:1AAA
Muted text4.10:1AA Large
Accent7.57:1AAA
Destructive6.96:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.22:1AAA
Primary button7.61:1AAA
Secondary button7.36:1AAA
Muted text5.28:1AA
Accent7.57:1AAA
Destructive3.96:1AA Large

CSS variables

Paste this into your globals.css to use Herb Robert Porpoise in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 323.669);
  --foreground: oklch(0.084 0.026 325.822);
  --muted: oklch(0.88 0.008 305.623);
  --muted-foreground: oklch(0.504 0.01 305.473);
  --popover: oklch(0.974 0.01 323.687);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.01 323.687);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.944 0.007 323.675);
  --input: oklch(0.944 0.007 323.675);
  --primary: oklch(0.773 0.11 324.323);
  --primary-foreground: oklch(0.25 0.074 324.896);
  --secondary: oklch(0.743 0.095 304.019);
  --secondary-foreground: oklch(0.225 0.065 301.328);
  --accent: oklch(0.767 0.089 344.396);
  --accent-foreground: oklch(0.246 0.062 347.46);
  --destructive: oklch(0.377 0.126 33.684);
  --destructive-foreground: oklch(0.865 0.063 32.869);
  --ring: oklch(0.773 0.11 324.323);
  --chart-1: oklch(0.773 0.11 324.323);
  --chart-2: oklch(0.743 0.095 304.019);
  --chart-3: oklch(0.767 0.089 344.396);
  --chart-4: oklch(0.773 0.083 304.297);
  --chart-5: oklch(0.772 0.116 324.361);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.016 324.748);
  --foreground: oklch(0.992 0.002 323.648);
  --muted: oklch(0.263 0.01 305.215);
  --muted-foreground: oklch(0.677 0.009 305.555);
  --popover: oklch(0.127 0.018 324.731);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.018 324.731);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.212 0.015 323.987);
  --input: oklch(0.212 0.015 323.987);
  --primary: oklch(0.773 0.11 324.323);
  --primary-foreground: oklch(0.25 0.074 324.896);
  --secondary: oklch(0.743 0.095 304.019);
  --secondary-foreground: oklch(0.225 0.065 301.328);
  --accent: oklch(0.767 0.089 344.396);
  --accent-foreground: oklch(0.246 0.062 347.46);
  --destructive: oklch(0.624 0.215 33.421);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.773 0.11 324.323);
  --chart-1: oklch(0.773 0.11 324.323);
  --chart-2: oklch(0.743 0.095 304.019);
  --chart-3: oklch(0.767 0.089 344.396);
  --chart-4: oklch(0.773 0.083 304.297);
  --chart-5: oklch(0.772 0.116 324.361);
}