Cruel for shadcn/ui

Cruel is a shadcn/ui theme built around a light red primary color (#efc3c8) with muted light red accents (#e8e3e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#efc3c8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#efc3c8pink
#efc3c8pink
Primary foreground
#651b25maroon
#651b25maroon
Secondary
#e8e3e4gainsboro
#3a2729darkslategray
Secondary foreground
#534647darkslategray
#d4bfc2silver
Muted
#efe6e7linen
#191011black
Muted foreground
#5e5a5adimgray
#a5a1a2darkgray
Accent
#e8e3e4gainsboro
#3a2729darkslategray
Accent foreground
#534647darkslategray
#d4bfc2silver
Destructive
#bd1414firebrick
#de1717crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#efc3c8pink
#efc3c8pink

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.64:1AAA
Secondary button7.08:1AAA
Muted text5.54:1AA
Accent7.08:1AAA
Destructive6.40:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.64:1AAA
Secondary button8.01:1AAA
Muted text7.33:1AAA
Accent8.01:1AAA
Destructive4.96:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.932 0.011 8.031);
  --muted-foreground: oklch(0.471 0.005 7.997);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.856 0.051 9.2);
  --primary-foreground: oklch(0.345 0.105 17.109);
  --secondary: oklch(0.92 0.005 7.883);
  --secondary-foreground: oklch(0.407 0.019 8.881);
  --accent: oklch(0.92 0.005 7.883);
  --accent-foreground: oklch(0.407 0.019 8.881);
  --destructive: oklch(0.509 0.199 28.202);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.856 0.051 9.2);
  --chart-1: oklch(0.856 0.051 9.2);
  --chart-2: oklch(0.92 0.005 7.883);
  --chart-3: oklch(0.92 0.005 7.883);
  --chart-4: oklch(0.944 0.004 7.84);
  --chart-5: oklch(0.855 0.054 9.281);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.184 0.017 9.968);
  --muted-foreground: oklch(0.713 0.004 7.897);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.856 0.051 9.2);
  --primary-foreground: oklch(0.345 0.105 17.109);
  --secondary: oklch(0.296 0.03 10.192);
  --secondary-foreground: oklch(0.823 0.025 8.476);
  --accent: oklch(0.296 0.03 10.192);
  --accent-foreground: oklch(0.823 0.025 8.476);
  --destructive: oklch(0.572 0.225 28.315);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.856 0.051 9.2);
  --chart-1: oklch(0.856 0.051 9.2);
  --chart-2: oklch(0.296 0.03 10.192);
  --chart-3: oklch(0.296 0.03 10.192);
  --chart-4: oklch(0.324 0.033 10.278);
  --chart-5: oklch(0.855 0.054 9.281);
}