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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 6.07:1 | AA |
| Destructive | 4.87:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 9.73:1 | AAA |
| Accent | 6.07:1 | AA |
| Destructive | 5.94:1 | AA |
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);
}