Publishing for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button7.36:1AAA
Secondary button7.01:1AAA
Muted text4.51:1AA
Accent6.22:1AA
Destructive5.37:1AA
Dark mode
Text on background18.65:1AAA
Text on card18.65:1AAA
Primary button7.36:1AAA
Secondary button7.01:1AAA
Muted text6.06:1AA
Accent6.22:1AA
Destructive3.58:1AA Large

CSS variables

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);
}