Conduct for shadcn/ui

Conduct is a shadcn/ui theme built around a light red primary color (#dbb2ad) with muted light red accents (#e5dcdc). The light mode uses a neutral background (#fcf8f7). Dark mode keeps the light red primary (#dbb2ad) on a red-tinted background (#0f0706).

Color palette

TokenLightDark
Background
#fcf8f7snow
#0f0706black
Foreground
#120402black
#faf5f4whitesmoke
Card
#fcf8f7snow
#0f0706black
Card foreground
#120402black
#faf5f4whitesmoke
Popover
#fcf8f7snow
#0f0706black
Popover foreground
#120402black
#faf5f4whitesmoke
Primary
#dbb2adtan
#dbb2adtan
Primary foreground
#3c1e1ablack
#3c1e1ablack
Secondary
#e5dcdcgainsboro
#303030darkslategray
Secondary foreground
#533e3cdarkslategray
#c9c9c9silver
Muted
#eee3e2mistyrose
#1d1111black
Muted foreground
#554b4adarkslategray
#b5aaaadarkgray
Accent
#e5dcdcgainsboro
#303030darkslategray
Accent foreground
#533e3cdarkslategray
#c9c9c9silver
Destructive
#831507maroon
#f3341borangered
Destructive foreground
#fcc7c0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbb2adtan
#dbb2adtan

Contrast

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

Light mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button7.89:1AAA
Secondary button7.37:1AAA
Muted text6.71:1AA
Accent7.37:1AAA
Destructive6.78:1AA
Dark mode
Text on background18.48:1AAA
Text on card18.48:1AAA
Primary button7.89:1AAA
Secondary button7.91:1AAA
Muted text8.16:1AAA
Accent7.91:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 25.03);
  --foreground: oklch(0.133 0.031 32.887);
  --muted: oklch(0.924 0.013 25.107);
  --muted-foreground: oklch(0.421 0.014 25.283);
  --popover: oklch(0.982 0.005 25.03);
  --popover-foreground: oklch(0.133 0.031 32.887);
  --card: oklch(0.982 0.005 25.03);
  --card-foreground: oklch(0.133 0.031 32.887);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.799 0.049 25.601);
  --primary-foreground: oklch(0.275 0.048 27.307);
  --secondary: oklch(0.903 0.01 25.08);
  --secondary-foreground: oklch(0.387 0.029 25.787);
  --accent: oklch(0.903 0.01 25.08);
  --accent-foreground: oklch(0.387 0.029 25.787);
  --destructive: oklch(0.395 0.146 31.058);
  --destructive-foreground: oklch(0.874 0.061 27.066);
  --ring: oklch(0.799 0.049 25.601);
  --chart-1: oklch(0.799 0.049 25.601);
  --chart-2: oklch(0.903 0.01 25.08);
  --chart-3: oklch(0.903 0.01 25.08);
  --chart-4: oklch(0.927 0.007 25.054);
  --chart-5: oklch(0.798 0.052 25.661);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.016 28.137);
  --foreground: oklch(0.974 0.006 25.04);
  --muted: oklch(0.193 0.022 19.243);
  --muted-foreground: oklch(0.749 0.013 17.442);
  --popover: oklch(0.138 0.016 28.137);
  --popover-foreground: oklch(0.974 0.006 25.04);
  --card: oklch(0.138 0.016 28.137);
  --card-foreground: oklch(0.974 0.006 25.04);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.799 0.049 25.601);
  --primary-foreground: oklch(0.275 0.048 27.307);
  --secondary: oklch(0.311 0 180);
  --secondary-foreground: oklch(0.837 0 171.254);
  --accent: oklch(0.311 0 180);
  --accent-foreground: oklch(0.837 0 171.254);
  --destructive: oklch(0.627 0.228 31.028);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.799 0.049 25.601);
  --chart-1: oklch(0.799 0.049 25.601);
  --chart-2: oklch(0.311 0 180);
  --chart-3: oklch(0.311 0 180);
  --chart-4: oklch(0.341 0 158.199);
  --chart-5: oklch(0.798 0.052 25.661);
}