Penny for shadcn/ui

Penny is a shadcn/ui theme built around a light purple primary color (#e89bd5) with muted light purple accents (#dbccd7). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the light purple primary (#e89bd5) on a neutral background (#080306).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#080306black
Foreground
#000000black
#faf4f9whitesmoke
Card
#fdfbfdsnow
#080306black
Card foreground
#000000black
#faf4f9whitesmoke
Popover
#fdfbfdsnow
#080306black
Popover foreground
#000000black
#faf4f9whitesmoke
Primary
#e89bd5plum
#e89bd5plum
Primary foreground
#430f36darkslategray
#430f36darkslategray
Secondary
#e8e3e7gainsboro
#281b24black
Secondary foreground
#554451darkslategray
#c8acc1silver
Muted
#e6e0e4gainsboro
#1f191dblack
Muted foreground
#5a4455dimgray
#bba5b5darkgray
Accent
#dbccd7lightgrey
#3f2238darkslategray
Accent foreground
#453140darkslategray
#dab9d1thistle
Destructive
#81130emaroon
#e7271dcrimson
Destructive foreground
#f9cac8pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e89bd5plum
#e89bd5plum

Contrast

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

Light mode
Text on background20.46:1AAA
Text on card20.46:1AAA
Primary button7.43:1AAA
Secondary button7.09:1AAA
Muted text6.75:1AA
Accent7.73:1AAA
Destructive7.01:1AAA
Dark mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button7.43:1AAA
Secondary button7.98:1AAA
Muted text7.52:1AAA
Accent7.91:1AAA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 333.925);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.913 0.008 334.029);
  --muted-foreground: oklch(0.416 0.04 335.404);
  --popover: oklch(0.991 0.003 333.925);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.003 333.925);
  --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.784 0.118 336.226);
  --primary-foreground: oklch(0.274 0.093 339.418);
  --secondary: oklch(0.92 0.008 334.028);
  --secondary-foreground: oklch(0.409 0.03 335.077);
  --accent: oklch(0.861 0.022 334.303);
  --accent-foreground: oklch(0.34 0.038 335.633);
  --destructive: oklch(0.39 0.145 28.97);
  --destructive-foreground: oklch(0.88 0.054 21.749);
  --ring: oklch(0.784 0.118 336.226);
  --chart-1: oklch(0.784 0.118 336.226);
  --chart-2: oklch(0.92 0.008 334.028);
  --chart-3: oklch(0.861 0.022 334.303);
  --chart-4: oklch(0.945 0.006 333.98);
  --chart-5: oklch(0.783 0.123 336.333);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.02 334.52);
  --foreground: oklch(0.974 0.009 334.026);
  --muted: oklch(0.223 0.012 334.742);
  --muted-foreground: oklch(0.746 0.034 334.634);
  --popover: oklch(0.108 0.02 334.52);
  --popover-foreground: oklch(0.974 0.009 334.026);
  --card: oklch(0.108 0.02 334.52);
  --card-foreground: oklch(0.974 0.009 334.026);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.784 0.118 336.226);
  --primary-foreground: oklch(0.274 0.093 339.418);
  --secondary: oklch(0.241 0.027 335.674);
  --secondary-foreground: oklch(0.776 0.042 334.769);
  --accent: oklch(0.299 0.056 336.791);
  --accent-foreground: oklch(0.822 0.049 334.843);
  --destructive: oklch(0.597 0.225 29.126);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.784 0.118 336.226);
  --chart-1: oklch(0.784 0.118 336.226);
  --chart-2: oklch(0.241 0.027 335.674);
  --chart-3: oklch(0.299 0.056 336.791);
  --chart-4: oklch(0.271 0.033 335.777);
  --chart-5: oklch(0.783 0.123 336.333);
}