Newspaper is a shadcn/ui theme built around a purple primary color (#b94bb0) with green accents (#4bb954). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the purple primary (#b94bb0) on a purple-tinted background (#0c030b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #0c030bblack |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fbf8fbsnow | #10040fblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbf8fbsnow | #10040fblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #b94bb0mediumorchid | #b94bb0mediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4bb954mediumseagreen | #4bb954mediumseagreen |
| Secondary foreground | #102812black | #102812black |
| Muted | #e1efe2gainsboro | #101e11black |
| Muted foreground | #454f46darkslategray | #b0bab1darkgray |
| Accent | #4bb954mediumseagreen | #4bb954mediumseagreen |
| Accent foreground | #102812black | #102812black |
| Destructive | #b00d07firebrick | #f63831crimson |
| Destructive foreground | #feeceblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b94bb0mediumorchid | #b94bb0mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.48:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 4.47:1 | AA Large |
| Secondary button | 6.27:1 | AA |
| Muted text | 7.18:1 | AAA |
| Accent | 6.27:1 | AA |
| Destructive | 6.32:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 4.47:1 | AA Large |
| Secondary button | 6.27:1 | AA |
| Muted text | 8.62:1 | AAA |
| Accent | 6.27:1 | AA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Newspaper in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 328.09);
--foreground: oklch(0 0 0);
--muted: oklch(0.939 0.024 147.795);
--muted-foreground: oklch(0.416 0.02 147.534);
--popover: oklch(0.983 0.005 328.116);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.005 328.116);
--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.594 0.185 330.993);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.699 0.172 144.898);
--secondary-foreground: oklch(0.251 0.052 145.535);
--accent: oklch(0.699 0.172 144.898);
--accent-foreground: oklch(0.251 0.052 145.535);
--destructive: oklch(0.48 0.191 29.24);
--destructive-foreground: oklch(0.957 0.02 19.901);
--ring: oklch(0.594 0.185 330.993);
--chart-1: oklch(0.594 0.185 330.993);
--chart-2: oklch(0.699 0.172 144.898);
--chart-3: oklch(0.699 0.172 144.898);
--chart-4: oklch(0.716 0.164 145.187);
--chart-5: oklch(0.596 0.195 331.143);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.029 329.603);
--foreground: oklch(0.992 0.002 328.086);
--muted: oklch(0.218 0.033 146.301);
--muted-foreground: oklch(0.779 0.018 147.825);
--popover: oklch(0.138 0.033 329.978);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.033 329.978);
--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.594 0.185 330.993);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.699 0.172 144.898);
--secondary-foreground: oklch(0.251 0.052 145.535);
--accent: oklch(0.699 0.172 144.898);
--accent-foreground: oklch(0.251 0.052 145.535);
--destructive: oklch(0.637 0.226 27.88);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.594 0.185 330.993);
--chart-1: oklch(0.594 0.185 330.993);
--chart-2: oklch(0.699 0.172 144.898);
--chart-3: oklch(0.699 0.172 144.898);
--chart-4: oklch(0.716 0.164 145.187);
--chart-5: oklch(0.596 0.195 331.143);
}