Newsletter is a shadcn/ui theme built around a teal primary color (#2acb7d) with muted light teal accents (#d8dfdb). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the teal primary (#2acb7d) on a teal-tinted background (#030c08).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #030c08black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8fbfamintcream | #04100ablack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfdfcwhite | #030c08black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #2acb7dmediumseagreen | #2acb7dmediumseagreen |
| Primary foreground | #072215black | #072215black |
| Secondary | #d8dfdbgainsboro | #252826darkslategray |
| Secondary foreground | #3c4943darkslategray | #bdc2bfsilver |
| Muted | #eaf6f0honeydew | #09150fblack |
| Muted foreground | #5c6661dimgray | #99a39edarkgray |
| Accent | #d8dfdbgainsboro | #252826darkslategray |
| Accent foreground | #3c4943darkslategray | #bdc2bfsilver |
| Destructive | #810c03maroon | #e01406red |
| Destructive foreground | #fdbeb9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2acb7dmediumseagreen | #2acb7dmediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 5.34:1 | AA |
| Accent | 6.95:1 | AA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 7.17:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 4.92:1 | AA |
Paste this into your globals.css to use Newsletter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 165.967);
--foreground: oklch(0 0 0);
--muted: oklch(0.961 0.014 165.613);
--muted-foreground: oklch(0.5 0.014 165.247);
--popover: oklch(0.993 0.002 165.967);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.004 165.915);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.745 0.17 155.937);
--primary-foreground: oklch(0.226 0.042 159.358);
--secondary: oklch(0.897 0.009 165.748);
--secondary-foreground: oklch(0.391 0.02 164.56);
--accent: oklch(0.897 0.009 165.748);
--accent-foreground: oklch(0.391 0.02 164.56);
--destructive: oklch(0.385 0.15 30.053);
--destructive-foreground: oklch(0.858 0.074 23.372);
--ring: oklch(0.745 0.17 155.937);
--chart-1: oklch(0.745 0.17 155.937);
--chart-2: oklch(0.897 0.009 165.748);
--chart-3: oklch(0.897 0.009 165.748);
--chart-4: oklch(0.919 0.007 165.812);
--chart-5: oklch(0.754 0.176 155.532);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.019 165.814);
--foreground: oklch(1 0 180);
--muted: oklch(0.183 0.021 162.528);
--muted-foreground: oklch(0.706 0.013 165.521);
--popover: oklch(0.142 0.019 165.814);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.159 0.023 163.818);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.745 0.17 155.937);
--primary-foreground: oklch(0.226 0.042 159.358);
--secondary: oklch(0.272 0.005 165.501);
--secondary-foreground: oklch(0.809 0.007 165.798);
--accent: oklch(0.272 0.005 165.501);
--accent-foreground: oklch(0.809 0.007 165.798);
--destructive: oklch(0.574 0.229 29.775);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.745 0.17 155.937);
--chart-1: oklch(0.745 0.17 155.937);
--chart-2: oklch(0.272 0.005 165.501);
--chart-3: oklch(0.272 0.005 165.501);
--chart-4: oklch(0.304 0.006 165.477);
--chart-5: oklch(0.754 0.176 155.532);
}