Email for shadcn/ui

Email is a shadcn/ui theme built around a vivid deep blue primary color (#081f3a) with vivid deep indigo accents (#0a083a). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid deep blue primary (#081f3a) on a blue-tinted background (#060a0f).

Color palette

TokenLightDark
Background
#fbfcfewhite
#060a0fblack
Foreground
#010204black
#fcfcfdwhite
Card
#fbfcfewhite
#060a0fblack
Card foreground
#010204black
#fcfcfdwhite
Popover
#fbfcfewhite
#060a0fblack
Popover foreground
#010204black
#fcfcfdwhite
Primary
#081f3amidnightblue
#081f3amidnightblue
Primary foreground
#86b5eeskyblue
#86b5eeskyblue
Secondary
#08383adarkslategray
#08383adarkslategray
Secondary foreground
#2cd9e2turquoise
#2cd9e2turquoise
Muted
#e8f2f2whitesmoke
#0d1717black
Muted foreground
#3f4a4adarkslategray
#b5bfc0silver
Accent
#0a083amidnightblue
#0a083amidnightblue
Accent foreground
#8b86eemediumpurple
#8b86eemediumpurple
Destructive
#d03b16firebrick
#ea5834tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#081f3amidnightblue
#081f3amidnightblue

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.79:1AAA
Secondary button7.42:1AAA
Muted text8.03:1AAA
Accent6.07:1AA
Destructive4.87:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button7.79:1AAA
Secondary button7.42:1AAA
Muted text9.73:1AAA
Accent6.07:1AA
Destructive5.94:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 253.236);
  --foreground: oklch(0.087 0.012 243.682);
  --muted: oklch(0.953 0.01 200.757);
  --muted-foreground: oklch(0.399 0.014 200.503);
  --popover: oklch(0.991 0.002 253.236);
  --popover-foreground: oklch(0.087 0.012 243.682);
  --card: oklch(0.991 0.002 253.236);
  --card-foreground: oklch(0.087 0.012 243.682);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.237 0.061 255.11);
  --primary-foreground: oklch(0.761 0.097 253.899);
  --secondary: oklch(0.311 0.048 200.321);
  --secondary-foreground: oklch(0.809 0.13 200.554);
  --accent: oklch(0.185 0.092 274.906);
  --accent-foreground: oklch(0.67 0.152 283.772);
  --destructive: oklch(0.571 0.191 34.272);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.237 0.061 255.11);
  --chart-1: oklch(0.237 0.061 255.11);
  --chart-2: oklch(0.311 0.048 200.321);
  --chart-3: oklch(0.185 0.092 274.906);
  --chart-4: oklch(0.356 0.056 200.417);
  --chart-5: oklch(0.237 0.063 255.161);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.013 249.871);
  --foreground: oklch(0.992 0.002 253.229);
  --muted: oklch(0.193 0.014 200.146);
  --muted-foreground: oklch(0.797 0.012 200.715);
  --popover: oklch(0.141 0.013 249.871);
  --popover-foreground: oklch(0.992 0.002 253.229);
  --card: oklch(0.141 0.013 249.871);
  --card-foreground: oklch(0.992 0.002 253.229);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.237 0.061 255.11);
  --primary-foreground: oklch(0.761 0.097 253.899);
  --secondary: oklch(0.311 0.048 200.321);
  --secondary-foreground: oklch(0.809 0.13 200.554);
  --accent: oklch(0.185 0.092 274.906);
  --accent-foreground: oklch(0.67 0.152 283.772);
  --destructive: oklch(0.648 0.187 35.071);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.237 0.061 255.11);
  --chart-1: oklch(0.237 0.061 255.11);
  --chart-2: oklch(0.311 0.048 200.321);
  --chart-3: oklch(0.185 0.092 274.906);
  --chart-4: oklch(0.356 0.056 200.417);
  --chart-5: oklch(0.237 0.063 255.161);
}