Pitiful for shadcn/ui

Pitiful is a shadcn/ui theme built around a purple primary color (#95377a) with red accents (#95374b). The light mode uses a neutral background (#fefbfd). Dark mode keeps the purple primary (#95377a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfdsnow
#000000black
Foreground
#040103black
#fdfcfdwhite
Card
#fefbfdsnow
#000000black
Card foreground
#040103black
#fdfcfdwhite
Popover
#fefbfdsnow
#000000black
Popover foreground
#040103black
#fdfcfdwhite
Primary
#95377arebeccapurple
#95377arebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#813795rebeccapurple
#813795rebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebddeelavender
#1f1122black
Muted foreground
#655a68dimgray
#a297a5darkgray
Accent
#95374bbrown
#95374bbrown
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#630a09maroon
#ef4643tomato
Destructive foreground
#f7a7a6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#95377arebeccapurple
#95377arebeccapurple

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button6.75:1AA
Secondary button7.22:1AAA
Muted text4.99:1AA
Accent7.17:1AAA
Destructive7.01:1AAA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button6.75:1AA
Secondary button7.22:1AAA
Muted text6.48:1AA
Accent7.17:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 335.26);
  --foreground: oklch(0.084 0.02 335.854);
  --muted: oklch(0.913 0.028 318.88);
  --muted-foreground: oklch(0.483 0.025 318.872);
  --popover: oklch(0.991 0.004 335.26);
  --popover-foreground: oklch(0.084 0.02 335.854);
  --card: oklch(0.991 0.004 335.26);
  --card-foreground: oklch(0.084 0.02 335.854);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.492 0.148 340.391);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.477 0.159 318.335);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.475 0.127 10.111);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.32 0.121 28.08);
  --destructive-foreground: oklch(0.806 0.095 20.442);
  --ring: oklch(0.492 0.148 340.391);
  --chart-1: oklch(0.492 0.148 340.391);
  --chart-2: oklch(0.477 0.159 318.335);
  --chart-3: oklch(0.475 0.127 10.111);
  --chart-4: oklch(0.502 0.169 318.323);
  --chart-5: oklch(0.493 0.156 340.703);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 335.219);
  --muted: oklch(0.204 0.04 318.752);
  --muted-foreground: oklch(0.691 0.023 318.879);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.002 335.219);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.002 335.219);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.492 0.148 340.391);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.477 0.159 318.335);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.475 0.127 10.111);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.638 0.206 25.982);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.492 0.148 340.391);
  --chart-1: oklch(0.492 0.148 340.391);
  --chart-2: oklch(0.477 0.159 318.335);
  --chart-3: oklch(0.475 0.127 10.111);
  --chart-4: oklch(0.502 0.169 318.323);
  --chart-5: oklch(0.493 0.156 340.703);
}