Newspaper is a shadcn/ui theme built around a muted purple primary color (#a180a8) with muted pink accents (#a8809b). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted purple primary (#a180a8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #080109black | #fdfcfdwhite |
| Card | #fcf7fdghostwhite | #030303black |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #080109black | #fdfcfdwhite |
| Primary | #a180a8rosybrown | #a180a8rosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #8d80a8lightslategray | #8d80a8lightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #dddce0gainsboro | #201f23black |
| Muted foreground | #55515cdimgray | #a7a3aedarkgray |
| Accent | #a8809brosybrown | #a8809brosybrown |
| Accent foreground | #000000black | #000000black |
| Destructive | #a23510saddlebrown | #e95625chocolate |
| Destructive foreground | #fdede8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a180a8rosybrown | #a180a8rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 5.76:1 | AA |
| Muted text | 5.64:1 | AA |
| Accent | 6.20:1 | AA |
| Destructive | 6.03:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 5.76:1 | AA |
| Muted text | 6.62:1 | AA |
| Accent | 6.20:1 | AA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Newspaper in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 320.539);
--foreground: oklch(0.103 0.033 323.02);
--muted: oklch(0.896 0.006 301.376);
--muted-foreground: oklch(0.444 0.017 300.864);
--popover: oklch(0.991 0.005 320.539);
--popover-foreground: oklch(0.103 0.033 323.02);
--card: oklch(0.981 0.009 320.546);
--card-foreground: oklch(0.082 0.026 323.02);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.644 0.071 320.687);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.625 0.062 299.871);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.646 0.062 339.108);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.485 0.152 36.977);
--destructive-foreground: oklch(0.957 0.018 39.396);
--ring: oklch(0.644 0.071 320.687);
--chart-1: oklch(0.644 0.071 320.687);
--chart-2: oklch(0.625 0.062 299.871);
--chart-3: oklch(0.646 0.062 339.108);
--chart-4: oklch(0.653 0.057 300.071);
--chart-5: oklch(0.642 0.082 320.707);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 320.535);
--muted: oklch(0.242 0.009 300.895);
--muted-foreground: oklch(0.722 0.015 301.151);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 320.535);
--card: oklch(0.092 0 180);
--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.644 0.071 320.687);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.625 0.062 299.871);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.646 0.062 339.108);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.644 0.192 37.526);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.644 0.071 320.687);
--chart-1: oklch(0.644 0.071 320.687);
--chart-2: oklch(0.625 0.062 299.871);
--chart-3: oklch(0.646 0.062 339.108);
--chart-4: oklch(0.653 0.057 300.071);
--chart-5: oklch(0.642 0.082 320.707);
}