Conduct for shadcn/ui

Conduct is a shadcn/ui theme built around a muted light yellow primary color (#e7e5df) with muted light blue accents (#dfe1e7). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the muted light yellow primary (#e7e5df) on a neutral background (#080602).

Color palette

TokenLightDark
Background
#fcfbf8snow
#080602black
Foreground
#161104black
#fbfaf9snow
Card
#fcfbf8snow
#080602black
Card foreground
#161104black
#fbfaf9snow
Popover
#fcfbf8snow
#080602black
Popover foreground
#161104black
#fbfaf9snow
Primary
#e7e5dfgainsboro
#e7e5dfgainsboro
Primary foreground
#544e40darkolivegreen
#544e40darkolivegreen
Secondary
#dfe1e7gainsboro
#dfe1e7gainsboro
Secondary foreground
#404654darkslategray
#404654darkslategray
Muted
#e9ecf1lavender
#0e1016black
Muted foreground
#646568dimgray
#97989bdarkgray
Accent
#dfe1e7gainsboro
#dfe1e7gainsboro
Accent foreground
#404654darkslategray
#404654darkslategray
Destructive
#9e3f10saddlebrown
#ec7a41coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e7e5dfgainsboro
#e7e5dfgainsboro

Contrast

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

Light mode
Text on background18.14:1AAA
Text on card18.14:1AAA
Primary button6.53:1AA
Secondary button7.24:1AAA
Muted text4.90:1AA
Accent7.24:1AAA
Destructive6.62:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button6.53:1AA
Secondary button7.24:1AAA
Muted text6.58:1AA
Accent7.24:1AAA
Destructive7.42:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 88.815);
  --foreground: oklch(0.178 0.026 90.288);
  --muted: oklch(0.942 0.008 268.734);
  --muted-foreground: oklch(0.507 0.005 268.723);
  --popover: oklch(0.987 0.004 88.815);
  --popover-foreground: oklch(0.178 0.026 90.288);
  --card: oklch(0.987 0.004 88.815);
  --card-foreground: oklch(0.178 0.026 90.288);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.921 0.007 88.842);
  --primary-foreground: oklch(0.425 0.023 89.013);
  --secondary: oklch(0.911 0.007 268.733);
  --secondary-foreground: oklch(0.394 0.024 268.245);
  --accent: oklch(0.911 0.007 268.733);
  --accent-foreground: oklch(0.394 0.024 268.245);
  --destructive: oklch(0.491 0.138 42.494);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.921 0.007 88.842);
  --chart-1: oklch(0.921 0.007 88.842);
  --chart-2: oklch(0.911 0.007 268.733);
  --chart-3: oklch(0.911 0.007 268.733);
  --chart-4: oklch(0.935 0.005 268.751);
  --chart-5: oklch(0.922 0.009 88.853);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.015 94.125);
  --foreground: oklch(0.986 0.002 88.801);
  --muted: oklch(0.174 0.012 268.192);
  --muted-foreground: oklch(0.68 0.004 268.745);
  --popover: oklch(0.125 0.015 94.125);
  --popover-foreground: oklch(0.986 0.002 88.801);
  --card: oklch(0.125 0.015 94.125);
  --card-foreground: oklch(0.986 0.002 88.801);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.921 0.007 88.842);
  --primary-foreground: oklch(0.425 0.023 89.013);
  --secondary: oklch(0.911 0.007 268.733);
  --secondary-foreground: oklch(0.394 0.024 268.245);
  --accent: oklch(0.911 0.007 268.733);
  --accent-foreground: oklch(0.394 0.024 268.245);
  --destructive: oklch(0.7 0.158 45.311);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.921 0.007 88.842);
  --chart-1: oklch(0.921 0.007 88.842);
  --chart-2: oklch(0.911 0.007 268.733);
  --chart-3: oklch(0.911 0.007 268.733);
  --chart-4: oklch(0.935 0.005 268.751);
  --chart-5: oklch(0.922 0.009 88.853);
}