Messenger for shadcn/ui

Messenger is a shadcn/ui theme built around a deep violet primary color (#241334) with deep teal accents (#133424). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#241334) on a violet-tinted background (#08030c).

Color palette

TokenLightDark
Background
#ffffffwhite
#08030cblack
Foreground
#08040cblack
#fcfcfdwhite
Card
#ffffffwhite
#08030cblack
Card foreground
#08040cblack
#fcfcfdwhite
Popover
#ffffffwhite
#08030cblack
Popover foreground
#08040cblack
#fcfcfdwhite
Primary
#241334midnightblue
#241334midnightblue
Primary foreground
#bd9edbplum
#bd9edbplum
Secondary
#342413black
#342413black
Secondary foreground
#dbbd9etan
#dbbd9etan
Muted
#eee8e2linen
#1d1711black
Muted foreground
#555453dimgray
#acabaadarkgray
Accent
#133424darkslategray
#133424darkslategray
Accent foreground
#9edbbdsilver
#9edbbdsilver
Destructive
#ca3912firebrick
#ec4e22chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#241334midnightblue
#241334midnightblue

Contrast

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

Light mode
Text on background20.32:1AAA
Text on card20.32:1AAA
Primary button7.44:1AAA
Secondary button8.38:1AAA
Muted text6.21:1AA
Accent8.61:1AAA
Destructive5.11:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button7.44:1AAA
Secondary button8.38:1AAA
Muted text7.75:1AAA
Accent8.61:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.023 309.693);
  --muted: oklch(0.934 0.01 67.705);
  --muted-foreground: oklch(0.447 0.002 67.779);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.023 309.693);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.118 0.023 309.693);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.229 0.064 304.995);
  --primary-foreground: oklch(0.748 0.092 307.085);
  --secondary: oklch(0.275 0.037 65.235);
  --secondary-foreground: oklch(0.816 0.054 66.947);
  --accent: oklch(0.295 0.049 159.387);
  --accent-foreground: oklch(0.842 0.076 162.508);
  --destructive: oklch(0.559 0.187 34.844);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.229 0.064 304.995);
  --chart-1: oklch(0.229 0.064 304.995);
  --chart-2: oklch(0.275 0.037 65.235);
  --chart-3: oklch(0.295 0.049 159.387);
  --chart-4: oklch(0.309 0.043 65.016);
  --chart-5: oklch(0.228 0.067 304.698);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.027 309.838);
  --foreground: oklch(0.991 0.002 308.436);
  --muted: oklch(0.209 0.014 66.913);
  --muted-foreground: oklch(0.741 0.002 67.799);
  --popover: oklch(0.116 0.027 309.838);
  --popover-foreground: oklch(0.991 0.002 308.436);
  --card: oklch(0.116 0.027 309.838);
  --card-foreground: oklch(0.991 0.002 308.436);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.229 0.064 304.995);
  --primary-foreground: oklch(0.748 0.092 307.085);
  --secondary: oklch(0.275 0.037 65.235);
  --secondary-foreground: oklch(0.816 0.054 66.947);
  --accent: oklch(0.295 0.049 159.387);
  --accent-foreground: oklch(0.842 0.076 162.508);
  --destructive: oklch(0.639 0.201 35.475);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.229 0.064 304.995);
  --chart-1: oklch(0.229 0.064 304.995);
  --chart-2: oklch(0.275 0.037 65.235);
  --chart-3: oklch(0.295 0.049 159.387);
  --chart-4: oklch(0.309 0.043 65.016);
  --chart-5: oklch(0.228 0.067 304.698);
}