Publishing is a shadcn/ui theme built around a deep red primary color (#4d2328) with deep orange accents (#4d3223). The light mode uses a neutral background (#fdf6f7). Dark mode keeps the deep red primary (#4d2328) on a red-tinted background (#0b0405).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f7snow | #0b0405black |
| Foreground | #080203black | #fcf8f9snow |
| Card | #fcf2f4lavenderblush | #0f0607black |
| Card foreground | #040101black | #fdfcfcsnow |
| Popover | #fdf6f7snow | #0b0405black |
| Popover foreground | #080203black | #fcf8f9snow |
| Primary | #4d2328darkslategray | #4d2328darkslategray |
| Primary foreground | #e3c0c4thistle | #e3c0c4thistle |
| Secondary | #4d233edarkslategray | #4d233edarkslategray |
| Secondary foreground | #e3c0d6thistle | #e3c0d6thistle |
| Muted | #e6e0e4gainsboro | #1f191dblack |
| Muted foreground | #6d5f68dimgray | #a0929bdarkgray |
| Accent | #4d3223darkolivegreen | #4d3223darkolivegreen |
| Accent foreground | #e3ccc0lightgrey | #e3ccc0lightgrey |
| Destructive | #d53601orangered | #fe480borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d2328darkslategray | #4d2328darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 4.62:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 4.81:1 | AA |
| Text on background | 19.26:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Publishing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 7.934);
--foreground: oklch(0.104 0.019 8.775);
--muted: oklch(0.912 0.009 338.936);
--muted-foreground: oklch(0.502 0.023 339.67);
--popover: oklch(0.98 0.007 7.934);
--popover-foreground: oklch(0.104 0.019 8.775);
--card: oklch(0.97 0.011 8.03);
--card-foreground: oklch(0.083 0.015 8.775);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.317 0.064 13.098);
--primary-foreground: oklch(0.838 0.04 8.914);
--secondary: oklch(0.325 0.074 343.289);
--secondary-foreground: oklch(0.843 0.049 339.924);
--accent: oklch(0.347 0.047 50.708);
--accent-foreground: oklch(0.861 0.03 52.122);
--destructive: oklch(0.575 0.202 34.89);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.317 0.064 13.098);
--chart-1: oklch(0.317 0.064 13.098);
--chart-2: oklch(0.325 0.074 343.289);
--chart-3: oklch(0.347 0.047 50.708);
--chart-4: oklch(0.353 0.083 343.398);
--chart-5: oklch(0.316 0.069 13.622);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.016 8.548);
--foreground: oklch(0.982 0.004 7.848);
--muted: oklch(0.222 0.013 339.952);
--muted-foreground: oklch(0.675 0.021 339.381);
--popover: oklch(0.122 0.016 8.548);
--popover-foreground: oklch(0.982 0.004 7.848);
--card: oklch(0.135 0.019 9.279);
--card-foreground: oklch(0.991 0.002 7.798);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.317 0.064 13.098);
--primary-foreground: oklch(0.838 0.04 8.914);
--secondary: oklch(0.325 0.074 343.289);
--secondary-foreground: oklch(0.843 0.049 339.924);
--accent: oklch(0.347 0.047 50.708);
--accent-foreground: oklch(0.861 0.03 52.122);
--destructive: oklch(0.661 0.225 35.423);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.317 0.064 13.098);
--chart-1: oklch(0.317 0.064 13.098);
--chart-2: oklch(0.325 0.074 343.289);
--chart-3: oklch(0.347 0.047 50.708);
--chart-4: oklch(0.353 0.083 343.398);
--chart-5: oklch(0.316 0.069 13.622);
}