Publishing is a shadcn/ui theme built around a vivid light violet primary color (#d5a0f8) with vivid light teal accents (#a0f8d5). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid light violet primary (#d5a0f8) on a violet-tinted background (#08050b).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #08050bblack |
| Foreground | #030104black | #f8f4fawhitesmoke |
| Card | #faf7fdghostwhite | #08050bblack |
| Card foreground | #030104black | #f8f4fawhitesmoke |
| Popover | #faf7fdghostwhite | #08050bblack |
| Popover foreground | #030104black | #f8f4fawhitesmoke |
| Primary | #d5a0f8plum | #d5a0f8plum |
| Primary foreground | #3c075findigo | #3c075findigo |
| Secondary | #f8d5a0navajowhite | #f8d5a0navajowhite |
| Secondary foreground | #5f3c07saddlebrown | #5f3c07saddlebrown |
| Muted | #e0dedcgainsboro | #23221fblack |
| Muted foreground | #67625bdimgray | #a49f98darkgray |
| Accent | #a0f8d5paleturquoise | #a0f8d5paleturquoise |
| Accent foreground | #075f3cdarkslategray | #075f3cdarkslategray |
| Destructive | #cb2c10firebrick | #ef5034tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d5a0f8plum | #d5a0f8plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 4.51:1 | AA |
| Accent | 6.22:1 | AA |
| Destructive | 5.37:1 | AA |
| Text on background | 18.65:1 | AAA |
| Text on card | 18.65:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 6.06:1 | AA |
| Accent | 6.22:1 | AA |
| Destructive | 3.58: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.008 312.293);
--foreground: oklch(0.079 0.024 314.819);
--muted: oklch(0.902 0.004 78.298);
--muted-foreground: oklch(0.498 0.012 78.213);
--popover: oklch(0.98 0.008 312.293);
--popover-foreground: oklch(0.079 0.024 314.819);
--card: oklch(0.98 0.008 312.293);
--card-foreground: oklch(0.079 0.024 314.819);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.786 0.133 311.064);
--primary-foreground: oklch(0.287 0.138 305.693);
--secondary: oklch(0.89 0.078 77.557);
--secondary-foreground: oklch(0.388 0.079 70.376);
--accent: oklch(0.913 0.098 167.022);
--accent-foreground: oklch(0.429 0.096 159.089);
--destructive: oklch(0.549 0.198 32.047);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.786 0.133 311.064);
--chart-1: oklch(0.786 0.133 311.064);
--chart-2: oklch(0.89 0.078 77.557);
--chart-3: oklch(0.913 0.098 167.022);
--chart-4: oklch(0.906 0.067 77.774);
--chart-5: oklch(0.785 0.137 311.012);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.019 313.6);
--foreground: oklch(0.973 0.009 312.293);
--muted: oklch(0.251 0.006 78.22);
--muted-foreground: oklch(0.705 0.011 78.255);
--popover: oklch(0.123 0.019 313.6);
--popover-foreground: oklch(0.973 0.009 312.293);
--card: oklch(0.123 0.019 313.6);
--card-foreground: oklch(0.973 0.009 312.293);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.786 0.133 311.064);
--primary-foreground: oklch(0.287 0.138 305.693);
--secondary: oklch(0.89 0.078 77.557);
--secondary-foreground: oklch(0.388 0.079 70.376);
--accent: oklch(0.913 0.098 167.022);
--accent-foreground: oklch(0.429 0.096 159.089);
--destructive: oklch(0.647 0.199 32.36);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.786 0.133 311.064);
--chart-1: oklch(0.786 0.133 311.064);
--chart-2: oklch(0.89 0.078 77.557);
--chart-3: oklch(0.913 0.098 167.022);
--chart-4: oklch(0.906 0.067 77.774);
--chart-5: oklch(0.785 0.137 311.012);
}