Mailing for shadcn/ui

Mailing is a shadcn/ui theme built around a red primary color (#c03959) with orange accents (#c05d39). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#c03959) on a neutral background (#080304).

Color palette

TokenLightDark
Background
#ffffffwhite
#080304black
Foreground
#090203black
#faf4f6whitesmoke
Card
#fcfcfcsnow
#0b0406black
Card foreground
#040102black
#fcf8f9snow
Popover
#ffffffwhite
#080304black
Popover foreground
#090203black
#faf4f6whitesmoke
Primary
#c03959indianred
#c03959indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c0399cmediumvioletred
#c0399cmediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edd9e8gainsboro
#261221black
Muted foreground
#585056dimgray
#afa7addarkgray
Accent
#c05d39chocolate
#c05d39chocolate
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d54f0bchocolate
#df520cchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c03959indianred
#c03959indianred

Contrast

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

Light mode
Text on background20.55:1AAA
Text on card20.33:1AAA
Primary button5.26:1AA
Secondary button4.84:1AA
Muted text5.80:1AA
Accent4.29:1AA Large
Destructive4.24:1AA Large
Dark mode
Text on background18.90:1AAA
Text on card19.27:1AAA
Primary button5.26:1AA
Secondary button4.84:1AA
Muted text7.52:1AAA
Accent4.29:1AA Large
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.024 0.987);
  --muted: oklch(0.905 0.03 335.104);
  --muted-foreground: oklch(0.441 0.015 335.101);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.024 0.987);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.081 0.019 0.987);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.553 0.171 11.08);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.576 0.199 340.463);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.137 40.076);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.601 0.182 40.698);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.553 0.171 11.08);
  --chart-1: oklch(0.553 0.171 11.08);
  --chart-2: oklch(0.576 0.199 340.463);
  --chart-3: oklch(0.594 0.137 40.076);
  --chart-4: oklch(0.598 0.197 340.077);
  --chart-5: oklch(0.555 0.179 11.783);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.016 0.978);
  --foreground: oklch(0.973 0.007 1.151);
  --muted: oklch(0.217 0.043 337.704);
  --muted-foreground: oklch(0.736 0.013 334.833);
  --popover: oklch(0.106 0.016 0.978);
  --popover-foreground: oklch(0.973 0.007 1.151);
  --card: oklch(0.122 0.019 1.107);
  --card-foreground: oklch(0.982 0.004 1.086);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.553 0.171 11.08);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.576 0.199 340.463);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.137 40.076);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.621 0.188 40.62);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.553 0.171 11.08);
  --chart-1: oklch(0.553 0.171 11.08);
  --chart-2: oklch(0.576 0.199 340.463);
  --chart-3: oklch(0.594 0.137 40.076);
  --chart-4: oklch(0.598 0.197 340.077);
  --chart-5: oklch(0.555 0.179 11.783);
}