Editorial is a shadcn/ui theme built around a vivid deep red primary color (#2f040b) with muted light red accents (#d0c2c5). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid deep red primary (#2f040b) on a red-tinted background (#0d0708).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0d0708black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fefbfcsnow | #0d0708black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefbfcsnow | #0d0708black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #2f040bblack | #2f040bblack |
| Primary foreground | #f27388lightcoral | #f27388lightcoral |
| Secondary | #e5e1e2gainsboro | #1d1b1bblack |
| Secondary foreground | #4f4546darkslategray | #b8b2b3darkgray |
| Muted | #eae1e3gainsboro | #1e1517black |
| Muted foreground | #5e4a4ddimgray | #b5a1a4darkgray |
| Accent | #d0c2c5silver | #33282adarkslategray |
| Accent foreground | #372a2cdarkslategray | #cec0c2silver |
| Destructive | #61170amaroon | #e84326orangered |
| Destructive foreground | #f6b3a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f040bblack | #2f040bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.44:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 7.28:1 | AAA |
| Text on background | 19.96:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Editorial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 5.51);
--foreground: oklch(0 0 0);
--muted: oklch(0.918 0.009 5.704);
--muted-foreground: oklch(0.431 0.028 7.092);
--popover: oklch(0.991 0.002 5.51);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.002 5.51);
--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.201 0.069 15.675);
--primary-foreground: oklch(0.71 0.157 11.546);
--secondary: oklch(0.913 0.004 5.572);
--secondary-foreground: oklch(0.401 0.014 6.366);
--accent: oklch(0.828 0.016 5.945);
--accent-foreground: oklch(0.301 0.019 7.058);
--destructive: oklch(0.329 0.108 32.373);
--destructive-foreground: oklch(0.826 0.08 30.127);
--ring: oklch(0.201 0.069 15.675);
--chart-1: oklch(0.201 0.069 15.675);
--chart-2: oklch(0.913 0.004 5.572);
--chart-3: oklch(0.828 0.016 5.945);
--chart-4: oklch(0.937 0.003 5.536);
--chart-5: oklch(0.202 0.071 15.951);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.012 6.34);
--foreground: oklch(1 0 180);
--muted: oklch(0.208 0.013 7.099);
--muted-foreground: oklch(0.727 0.024 6.298);
--popover: oklch(0.139 0.012 6.34);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.012 6.34);
--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.201 0.069 15.675);
--primary-foreground: oklch(0.71 0.157 11.546);
--secondary: oklch(0.225 0.004 5.857);
--secondary-foreground: oklch(0.769 0.007 5.68);
--accent: oklch(0.292 0.017 6.908);
--accent-foreground: oklch(0.82 0.015 5.934);
--destructive: oklch(0.622 0.206 32.364);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.201 0.069 15.675);
--chart-1: oklch(0.201 0.069 15.675);
--chart-2: oklch(0.225 0.004 5.857);
--chart-3: oklch(0.292 0.017 6.908);
--chart-4: oklch(0.256 0.004 5.889);
--chart-5: oklch(0.202 0.071 15.951);
}