Hurtful for shadcn/ui

Hurtful is a shadcn/ui theme built around a muted deep purple primary color (#170f1a) with muted light purple accents (#e7e3e8). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted deep purple primary (#170f1a) on a neutral background (#060307).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#060307black
Foreground
#0b020eblack
#fbf9fbsnow
Card
#fdfcfdwhite
#060307black
Card foreground
#0b020eblack
#fbf9fbsnow
Popover
#fdfcfdwhite
#060307black
Popover foreground
#0b020eblack
#fbf9fbsnow
Primary
#170f1ablack
#170f1ablack
Primary foreground
#ba99c2darkgray
#ba99c2darkgray
Secondary
#e7e3e8gainsboro
#1f1721black
Secondary foreground
#504653darkslategray
#bda8c2silver
Muted
#e5e0e6gainsboro
#1e191fblack
Muted foreground
#59455edimgray
#b5a1badarkgray
Accent
#e7e3e8gainsboro
#1f1721black
Accent foreground
#504653darkslategray
#bda8c2silver
Destructive
#822203maroon
#fa5119orangered
Destructive foreground
#fecab9peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#170f1ablack
#170f1ablack

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button7.50:1AAA
Secondary button7.08:1AAA
Muted text6.62:1AA
Accent7.08:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button7.50:1AAA
Secondary button7.92:1AAA
Muted text7.21:1AAA
Accent7.92:1AAA
Destructive3.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 319.445);
  --foreground: oklch(0.117 0.039 321.469);
  --muted: oklch(0.912 0.009 319.447);
  --muted-foreground: oklch(0.422 0.047 319.464);
  --popover: oklch(0.991 0.003 319.445);
  --popover-foreground: oklch(0.117 0.039 321.469);
  --card: oklch(0.991 0.003 319.445);
  --card-foreground: oklch(0.117 0.039 321.469);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.185 0.024 319.462);
  --primary-foreground: oklch(0.726 0.068 319.464);
  --secondary: oklch(0.921 0.006 319.446);
  --secondary-foreground: oklch(0.41 0.024 319.459);
  --accent: oklch(0.921 0.006 319.446);
  --accent-foreground: oklch(0.41 0.024 319.459);
  --destructive: oklch(0.405 0.135 36.263);
  --destructive-foreground: oklch(0.88 0.063 39.243);
  --ring: oklch(0.185 0.024 319.462);
  --chart-1: oklch(0.185 0.024 319.462);
  --chart-2: oklch(0.921 0.006 319.446);
  --chart-3: oklch(0.921 0.006 319.446);
  --chart-4: oklch(0.945 0.005 319.446);
  --chart-5: oklch(0.185 0.027 319.458);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.015 320.593);
  --foreground: oklch(0.984 0.003 319.445);
  --muted: oklch(0.222 0.013 319.459);
  --muted-foreground: oklch(0.734 0.041 319.459);
  --popover: oklch(0.11 0.015 320.593);
  --popover-foreground: oklch(0.984 0.003 319.445);
  --card: oklch(0.11 0.015 320.593);
  --card-foreground: oklch(0.984 0.003 319.445);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.185 0.024 319.462);
  --primary-foreground: oklch(0.726 0.068 319.464);
  --secondary: oklch(0.219 0.022 319.465);
  --secondary-foreground: oklch(0.758 0.042 319.459);
  --accent: oklch(0.219 0.022 319.465);
  --accent-foreground: oklch(0.758 0.042 319.459);
  --destructive: oklch(0.665 0.214 36.566);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.185 0.024 319.462);
  --chart-1: oklch(0.185 0.024 319.462);
  --chart-2: oklch(0.219 0.022 319.465);
  --chart-3: oklch(0.219 0.022 319.465);
  --chart-4: oklch(0.25 0.027 319.465);
  --chart-5: oklch(0.185 0.027 319.458);
}