Editorial is a shadcn/ui theme built around a muted green primary color (#c6c8ac) with muted green accents (#b8c8ac). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the muted green primary (#c6c8ac) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #040401black |
| Foreground | #0c0d02black | #fbfbf8snow |
| Card | #fbfcf8snow | #080802black |
| Card foreground | #080901black | #fdfdfcwhite |
| Popover | #fdfdfcwhite | #040401black |
| Popover foreground | #0c0d02black | #fbfbf8snow |
| Primary | #c6c8acsilver | #c6c8acsilver |
| Primary foreground | #27281bblack | #27281bblack |
| Secondary | #c8bcacsilver | #c8bcacsilver |
| Secondary foreground | #28221bblack | #28221bblack |
| Muted | #f4f2f1whitesmoke | #0e0d0bblack |
| Muted foreground | #706657dimgray | #a89e8frosybrown |
| Accent | #b8c8acsilver | #b8c8acsilver |
| Accent foreground | #20281bblack | #20281bblack |
| Destructive | #d40e08red | #f11009red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c6c8acsilver | #c6c8acsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 8.71:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 5.06:1 | AA |
| Accent | 8.60:1 | AAA |
| Destructive | 5.44:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 8.71:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 8.60:1 | AAA |
| Destructive | 4.35:1 | AA Large |
Paste this into your globals.css to use Editorial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.002 110.293);
--foreground: oklch(0.154 0.026 112.419);
--muted: oklch(0.963 0.003 76.64);
--muted-foreground: oklch(0.515 0.027 76.288);
--popover: oklch(0.995 0.002 110.293);
--popover-foreground: oklch(0.154 0.026 112.419);
--card: oklch(0.989 0.005 110.341);
--card-foreground: oklch(0.134 0.023 112.031);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.823 0.037 111.087);
--primary-foreground: oklch(0.27 0.023 111.824);
--secondary: oklch(0.802 0.026 76.466);
--secondary-foreground: oklch(0.257 0.016 76.159);
--accent: oklch(0.813 0.042 132.154);
--accent-foreground: oklch(0.264 0.026 132.6);
--destructive: oklch(0.549 0.22 29.292);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.037 111.087);
--chart-1: oklch(0.823 0.037 111.087);
--chart-2: oklch(0.802 0.026 76.466);
--chart-3: oklch(0.813 0.042 132.154);
--chart-4: oklch(0.824 0.023 76.499);
--chart-5: oklch(0.829 0.043 111.201);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.015 111.778);
--foreground: oklch(0.988 0.004 110.323);
--muted: oklch(0.16 0.004 76.519);
--muted-foreground: oklch(0.703 0.025 76.44);
--popover: oklch(0.104 0.015 111.778);
--popover-foreground: oklch(0.988 0.004 110.323);
--card: oklch(0.131 0.019 111.778);
--card-foreground: oklch(0.994 0.002 110.285);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.823 0.037 111.087);
--primary-foreground: oklch(0.27 0.023 111.824);
--secondary: oklch(0.802 0.026 76.466);
--secondary-foreground: oklch(0.257 0.016 76.159);
--accent: oklch(0.813 0.042 132.154);
--accent-foreground: oklch(0.264 0.026 132.6);
--destructive: oklch(0.606 0.243 29.303);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.037 111.087);
--chart-1: oklch(0.823 0.037 111.087);
--chart-2: oklch(0.802 0.026 76.466);
--chart-3: oklch(0.813 0.042 132.154);
--chart-4: oklch(0.824 0.023 76.499);
--chart-5: oklch(0.829 0.043 111.201);
}