Mailing is a shadcn/ui theme built around a light yellow primary color (#f0efe0) with light purple accents (#efe0f0). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the light yellow primary (#f0efe0) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #000000black |
| Foreground | #121202black | #f9f9f5whitesmoke |
| Card | #fafaf4floralwhite | #030303black |
| Card foreground | #0e0d02black | #fbfbf9snow |
| Popover | #fafaf4floralwhite | #030303black |
| Popover foreground | #0e0d02black | #fbfbf9snow |
| Primary | #f0efe0beige | #f0efe0beige |
| Primary foreground | #262513black | #262513black |
| Secondary | #e0f0eflavender | #e0f0eflavender |
| Secondary foreground | #132625black | #132625black |
| Muted | #f2f3f3whitesmoke | #0c0d0dblack |
| Muted foreground | #434c4bdarkslategray | #b3bcbcsilver |
| Accent | #efe0f0lavender | #efe0f0lavender |
| Accent foreground | #68346adarkslateblue | #68346adarkslateblue |
| Destructive | #6f300bsaddlebrown | #d55c15chocolate |
| Destructive foreground | #f8cdb5peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0efe0beige | #f0efe0beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.30:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 13.39:1 | AAA |
| Secondary button | 13.42:1 | AAA |
| Muted text | 7.94:1 | AAA |
| Accent | 7.26:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 13.39:1 | AAA |
| Secondary button | 13.42:1 | AAA |
| Muted text | 10.02:1 | AAA |
| Accent | 7.26:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Mailing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 104.895);
--foreground: oklch(0.176 0.032 107.712);
--muted: oklch(0.963 0.001 194.763);
--muted-foreground: oklch(0.408 0.011 194.287);
--popover: oklch(0.984 0.007 104.939);
--popover-foreground: oklch(0.156 0.028 107.865);
--card: oklch(0.984 0.007 104.939);
--card-foreground: oklch(0.156 0.028 107.865);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.949 0.02 105.17);
--primary-foreground: oklch(0.259 0.031 106.69);
--secondary: oklch(0.943 0.017 194.465);
--secondary-foreground: oklch(0.25 0.025 192.935);
--accent: oklch(0.924 0.026 324.799);
--accent-foreground: oklch(0.414 0.106 326.039);
--destructive: oklch(0.391 0.101 45.873);
--destructive-foreground: oklch(0.879 0.058 51.736);
--ring: oklch(0.949 0.02 105.17);
--chart-1: oklch(0.949 0.02 105.17);
--chart-2: oklch(0.943 0.017 194.465);
--chart-3: oklch(0.924 0.026 324.799);
--chart-4: oklch(0.962 0.011 194.577);
--chart-5: oklch(0.951 0.022 105.2);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.005 104.902);
--muted: oklch(0.159 0.002 194.543);
--muted-foreground: oklch(0.788 0.01 194.565);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.988 0.004 104.87);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.988 0.004 104.87);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.949 0.02 105.17);
--primary-foreground: oklch(0.259 0.031 106.69);
--secondary: oklch(0.943 0.017 194.465);
--secondary-foreground: oklch(0.25 0.025 192.935);
--accent: oklch(0.924 0.026 324.799);
--accent-foreground: oklch(0.414 0.106 326.039);
--destructive: oklch(0.619 0.17 44.56);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.949 0.02 105.17);
--chart-1: oklch(0.949 0.02 105.17);
--chart-2: oklch(0.943 0.017 194.465);
--chart-3: oklch(0.924 0.026 324.799);
--chart-4: oklch(0.962 0.011 194.577);
--chart-5: oklch(0.951 0.022 105.2);
}