Unwilling for shadcn/ui

Unwilling is a shadcn/ui theme built around a red primary color (#cb3457) with blue accents (#3457cb). The light mode uses a neutral background (#fefbfc). Dark mode keeps the red primary (#cb3457) on a red-tinted background (#0a0506).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0a0506black
Foreground
#0e0204black
#fdfbfcsnow
Card
#fdf7f8snow
#0d0709black
Card foreground
#090103black
#ffffffwhite
Popover
#fefbfcsnow
#0a0506black
Popover foreground
#0e0204black
#fdfbfcsnow
Primary
#cb3457indianred
#cb3457indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#57cb34limegreen
#57cb34limegreen
Secondary foreground
#11290ablack
#11290ablack
Muted
#e0e8degainsboro
#192117black
Muted foreground
#43503fdarkslategray
#b3c0afsilver
Accent
#3457cbroyalblue
#3457cbroyalblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#952c09saddlebrown
#f14a13orangered
Destructive foreground
#fcded4antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cb3457indianred
#cb3457indianred

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.50:1AAA
Primary button5.04:1AA
Secondary button7.41:1AAA
Muted text6.83:1AA
Accent6.20:1AA
Destructive6.24:1AA
Dark mode
Text on background19.62:1AAA
Text on card19.96:1AAA
Primary button5.04:1AA
Secondary button7.41:1AAA
Muted text8.68:1AAA
Accent6.20:1AA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 1.048);
  --foreground: oklch(0.115 0.032 1.548);
  --muted: oklch(0.923 0.017 138.349);
  --muted-foreground: oklch(0.414 0.033 138.425);
  --popover: oklch(0.991 0.003 1.048);
  --popover-foreground: oklch(0.115 0.032 1.548);
  --card: oklch(0.981 0.006 1.138);
  --card-foreground: oklch(0.1 0.027 0.993);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.565 0.186 12.287);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.746 0.212 139.56);
  --secondary-foreground: oklch(0.252 0.06 139.006);
  --accent: oklch(0.502 0.184 266.722);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.451 0.147 36.399);
  --destructive-foreground: oklch(0.923 0.037 39.314);
  --ring: oklch(0.565 0.186 12.287);
  --chart-1: oklch(0.565 0.186 12.287);
  --chart-2: oklch(0.746 0.212 139.56);
  --chart-3: oklch(0.502 0.184 266.722);
  --chart-4: oklch(0.759 0.204 139.332);
  --chart-5: oklch(0.568 0.193 13.009);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.011 0.97);
  --foreground: oklch(0.991 0.002 1.024);
  --muted: oklch(0.238 0.023 138.456);
  --muted-foreground: oklch(0.793 0.028 138.368);
  --popover: oklch(0.126 0.011 0.97);
  --popover-foreground: oklch(0.991 0.002 1.024);
  --card: oklch(0.139 0.012 1.771);
  --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.565 0.186 12.287);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.746 0.212 139.56);
  --secondary-foreground: oklch(0.252 0.06 139.006);
  --accent: oklch(0.502 0.184 266.722);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.643 0.211 36.18);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.565 0.186 12.287);
  --chart-1: oklch(0.565 0.186 12.287);
  --chart-2: oklch(0.746 0.212 139.56);
  --chart-3: oklch(0.502 0.184 266.722);
  --chart-4: oklch(0.759 0.204 139.332);
  --chart-5: oklch(0.568 0.193 13.009);
}