Defiant for shadcn/ui

Defiant is a shadcn/ui theme built around a muted pink primary color (#9f7a8d) with muted blue accents (#7a8d9f). The light mode uses a neutral background (#fcf7fa). Dark mode keeps the muted pink primary (#9f7a8d) on a pink-tinted background (#10040a).

Color palette

TokenLightDark
Background
#fcf7fasnow
#10040ablack
Foreground
#000000black
#f8f6f7whitesmoke
Card
#fcf7fasnow
#10040ablack
Card foreground
#000000black
#f8f6f7whitesmoke
Popover
#fcf7fasnow
#10040ablack
Popover foreground
#000000black
#f8f6f7whitesmoke
Primary
#9f7a8dgray
#9f7a8dgray
Primary foreground
#000000black
#000000black
Secondary
#8d9f7agray
#8d9f7agray
Secondary foreground
#000000black
#000000black
Muted
#dce4d3gainsboro
#242c1bblack
Muted foreground
#42463fdarkslategray
#bdc0b9silver
Accent
#7a8d9flightslategray
#7a8d9flightslategray
Accent foreground
#000000black
#000000black
Destructive
#8a2e0fsaddlebrown
#e75423chocolate
Destructive foreground
#fadbd1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9f7a8dgray
#9f7a8dgray

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button5.62:1AA
Secondary button7.34:1AAA
Muted text7.34:1AAA
Accent6.12:1AA
Destructive6.52:1AA
Dark mode
Text on background18.65:1AAA
Text on card18.65:1AAA
Primary button5.62:1AA
Secondary button7.34:1AAA
Muted text7.86:1AAA
Accent6.12:1AA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 344.447);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.024 128.097);
  --muted-foreground: oklch(0.387 0.012 128.149);
  --popover: oklch(0.982 0.006 344.447);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.006 344.447);
  --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.621 0.053 346.338);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.677 0.056 128.805);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.634 0.035 246.588);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.433 0.131 37.344);
  --destructive-foreground: oklch(0.915 0.037 39.313);
  --ring: oklch(0.621 0.053 346.338);
  --chart-1: oklch(0.621 0.053 346.338);
  --chart-2: oklch(0.677 0.056 128.805);
  --chart-3: oklch(0.634 0.035 246.588);
  --chart-4: oklch(0.7 0.052 128.696);
  --chart-5: oklch(0.618 0.063 346.722);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.027 346.262);
  --foreground: oklch(0.976 0.003 344.357);
  --muted: oklch(0.28 0.031 129.187);
  --muted-foreground: oklch(0.803 0.01 127.933);
  --popover: oklch(0.135 0.027 346.262);
  --popover-foreground: oklch(0.976 0.003 344.357);
  --card: oklch(0.135 0.027 346.262);
  --card-foreground: oklch(0.976 0.003 344.357);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.621 0.053 346.338);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.677 0.056 128.805);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.634 0.035 246.588);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.636 0.191 37.432);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.621 0.053 346.338);
  --chart-1: oklch(0.621 0.053 346.338);
  --chart-2: oklch(0.677 0.056 128.805);
  --chart-3: oklch(0.634 0.035 246.588);
  --chart-4: oklch(0.7 0.052 128.696);
  --chart-5: oklch(0.618 0.063 346.722);
}