Talking for shadcn/ui

Talking is a shadcn/ui theme built around a muted deep purple primary color (#3c253c) with muted deep teal accents (#253c3c). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted deep purple primary (#3c253c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fefbfewhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfewhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#3c253cdarkslategray
#3c253cdarkslategray
Primary foreground
#d6bdd6thistle
#d6bdd6thistle
Secondary
#3c3c25darkslategray
#3c3c25darkslategray
Secondary foreground
#d6d6bdlightgrey
#d6d6bdlightgrey
Muted
#f2f3e8linen
#17170cblack
Muted foreground
#4d4d4cdarkslategray
#b3b3b2darkgray
Accent
#253c3cdarkslategray
#253c3cdarkslategray
Accent foreground
#bdd6d6lightgrey
#bdd6d6lightgrey
Destructive
#c43912firebrick
#ee6944tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3c253cdarkslategray
#3c253cdarkslategray

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button7.96:1AAA
Secondary button7.62:1AAA
Muted text7.55:1AAA
Accent7.71:1AAA
Destructive5.33:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.96:1AAA
Secondary button7.62:1AAA
Muted text8.56:1AAA
Accent7.71:1AAA
Destructive6.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.006 326.1);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.96 0.015 107.445);
  --muted-foreground: oklch(0.421 0.002 107.277);
  --popover: oklch(0.991 0.006 326.1);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.006 326.1);
  --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.302 0.051 327.318);
  --primary-foreground: oklch(0.827 0.045 326.481);
  --secondary: oklch(0.349 0.038 109.007);
  --secondary-foreground: oklch(0.87 0.035 107.876);
  --accent: oklch(0.336 0.029 197.228);
  --accent-foreground: oklch(0.857 0.027 197.906);
  --destructive: oklch(0.548 0.182 34.951);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.302 0.051 327.318);
  --chart-1: oklch(0.302 0.051 327.318);
  --chart-2: oklch(0.349 0.038 109.007);
  --chart-3: oklch(0.336 0.029 197.228);
  --chart-4: oklch(0.385 0.042 109.049);
  --chart-5: oklch(0.302 0.057 327.457);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.202 0.021 108.914);
  --muted-foreground: oklch(0.767 0.002 107.221);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.302 0.051 327.318);
  --primary-foreground: oklch(0.827 0.045 326.481);
  --secondary: oklch(0.349 0.038 109.007);
  --secondary-foreground: oklch(0.87 0.035 107.876);
  --accent: oklch(0.336 0.029 197.228);
  --accent-foreground: oklch(0.857 0.027 197.906);
  --destructive: oklch(0.678 0.172 36.316);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.302 0.051 327.318);
  --chart-1: oklch(0.302 0.051 327.318);
  --chart-2: oklch(0.349 0.038 109.007);
  --chart-3: oklch(0.336 0.029 197.228);
  --chart-4: oklch(0.385 0.042 109.049);
  --chart-5: oklch(0.302 0.057 327.457);
}