Conversation for shadcn/ui

Conversation is a shadcn/ui theme built around a muted deep blue primary color (#0f161a) with muted deep green accents (#161a0f). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep blue primary (#0f161a) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#030f17black
#f6f8f9whitesmoke
Card
#ffffffwhite
#010304black
Card foreground
#030f17black
#f6f8f9whitesmoke
Popover
#ffffffwhite
#010304black
Popover foreground
#030f17black
#f6f8f9whitesmoke
Primary
#0f161ablack
#0f161ablack
Primary foreground
#97b3c4darkgray
#97b3c4darkgray
Secondary
#1a0f16black
#1a0f16black
Secondary foreground
#c497b3darkgray
#c497b3darkgray
Muted
#e9dde4gainsboro
#22161eblack
Muted foreground
#5f585ddimgray
#a7a0a4darkgray
Accent
#161a0fblack
#161a0fblack
Accent foreground
#b3c497darkgray
#b3c497darkgray
Destructive
#a22911firebrick
#e84626chocolate
Destructive foreground
#fdebe8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f161ablack
#0f161ablack

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.36:1AAA
Primary button8.32:1AAA
Secondary button7.50:1AAA
Muted text5.24:1AA
Accent9.46:1AAA
Destructive6.38:1AA
Dark mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button8.32:1AAA
Secondary button7.50:1AAA
Muted text6.82:1AA
Accent9.46:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.161 0.026 232.208);
  --muted: oklch(0.91 0.015 339.08);
  --muted-foreground: oklch(0.469 0.012 339.257);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.161 0.026 232.208);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.161 0.026 232.208);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.194 0.014 233.804);
  --primary-foreground: oklch(0.752 0.04 233.433);
  --secondary: oklch(0.186 0.023 341.251);
  --secondary-foreground: oklch(0.727 0.067 340.589);
  --accent: oklch(0.21 0.022 124.646);
  --accent-foreground: oklch(0.796 0.065 124.213);
  --destructive: oklch(0.471 0.16 32.938);
  --destructive-foreground: oklch(0.954 0.019 31.091);
  --ring: oklch(0.194 0.014 233.804);
  --chart-1: oklch(0.194 0.014 233.804);
  --chart-2: oklch(0.186 0.023 341.251);
  --chart-3: oklch(0.21 0.022 124.646);
  --chart-4: oklch(0.218 0.031 341.561);
  --chart-5: oklch(0.195 0.015 233.966);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.01 225.595);
  --foreground: oklch(0.977 0.003 232.622);
  --muted: oklch(0.219 0.022 340.762);
  --muted-foreground: oklch(0.712 0.011 339.041);
  --popover: oklch(0.092 0.01 225.595);
  --popover-foreground: oklch(0.977 0.003 232.622);
  --card: oklch(0.092 0.01 225.595);
  --card-foreground: oklch(0.977 0.003 232.622);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.194 0.014 233.804);
  --primary-foreground: oklch(0.752 0.04 233.433);
  --secondary: oklch(0.186 0.023 341.251);
  --secondary-foreground: oklch(0.727 0.067 340.589);
  --accent: oklch(0.21 0.022 124.646);
  --accent-foreground: oklch(0.796 0.065 124.213);
  --destructive: oklch(0.625 0.204 33.115);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.194 0.014 233.804);
  --chart-1: oklch(0.194 0.014 233.804);
  --chart-2: oklch(0.186 0.023 341.251);
  --chart-3: oklch(0.21 0.022 124.646);
  --chart-4: oklch(0.218 0.031 341.561);
  --chart-5: oklch(0.195 0.015 233.966);
}