Conflict for shadcn/ui

Conflict is a shadcn/ui theme built around a pink primary color (#772841) with blue accents (#284177). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#772841) on a pink-tinted background (#0a0507).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0507black
Foreground
#000000black
#fbf8f9snow
Card
#ffffffwhite
#0a0507black
Card foreground
#000000black
#fbf8f9snow
Popover
#ffffffwhite
#0a0507black
Popover foreground
#000000black
#fbf8f9snow
Primary
#772841brown
#772841brown
Primary foreground
#f4dde4mistyrose
#f4dde4mistyrose
Secondary
#417728darkolivegreen
#417728darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7ebe5beige
#161a14black
Muted foreground
#3f4b3adarkslategray
#bac5b4silver
Accent
#284177darkslateblue
#284177darkslateblue
Accent foreground
#dde4f4lavender
#dde4f4lavender
Destructive
#923807saddlebrown
#f46010orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#772841brown
#772841brown

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.58:1AAA
Secondary button5.42:1AA
Muted text7.63:1AAA
Accent7.85:1AAA
Destructive7.53:1AAA
Dark mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button7.58:1AAA
Secondary button5.42:1AA
Muted text9.86:1AAA
Accent7.85:1AAA
Destructive6.51:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.935 0.008 135.466);
  --muted-foreground: oklch(0.397 0.032 135.802);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.401 0.113 4.178);
  --primary-foreground: oklch(0.917 0.027 356.449);
  --secondary: oklch(0.512 0.125 137.224);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.383 0.097 263.725);
  --accent-foreground: oklch(0.918 0.023 265.878);
  --destructive: oklch(0.461 0.133 42.562);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.401 0.113 4.178);
  --chart-1: oklch(0.401 0.113 4.178);
  --chart-2: oklch(0.512 0.125 137.224);
  --chart-3: oklch(0.383 0.097 263.725);
  --chart-4: oklch(0.547 0.135 137.255);
  --chart-5: oklch(0.402 0.118 4.789);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.014 355.432);
  --foreground: oklch(0.983 0.003 355.718);
  --muted: oklch(0.21 0.012 135.685);
  --muted-foreground: oklch(0.81 0.027 135.574);
  --popover: oklch(0.125 0.014 355.432);
  --popover-foreground: oklch(0.983 0.003 355.718);
  --card: oklch(0.125 0.014 355.432);
  --card-foreground: oklch(0.983 0.003 355.718);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.401 0.113 4.178);
  --primary-foreground: oklch(0.917 0.027 356.449);
  --secondary: oklch(0.512 0.125 137.224);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.383 0.097 263.725);
  --accent-foreground: oklch(0.918 0.023 265.878);
  --destructive: oklch(0.671 0.197 42.095);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.401 0.113 4.178);
  --chart-1: oklch(0.401 0.113 4.178);
  --chart-2: oklch(0.512 0.125 137.224);
  --chart-3: oklch(0.383 0.097 263.725);
  --chart-4: oklch(0.547 0.135 137.255);
  --chart-5: oklch(0.402 0.118 4.789);
}