Publicity for shadcn/ui

Publicity is a shadcn/ui theme built around a light orange primary color (#eac8a4) with light yellow accents (#e9eaa4). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light orange primary (#eac8a4) on an orange-tinted background (#100a04).

Color palette

TokenLightDark
Background
#fefcfbsnow
#100a04black
Foreground
#100a04black
#fdfcfcsnow
Card
#fdfaf7snow
#140d05black
Card foreground
#0c0803black
#ffffffwhite
Popover
#fefcfbsnow
#100a04black
Popover foreground
#100a04black
#fdfcfcsnow
Primary
#eac8a4wheat
#eac8a4wheat
Primary foreground
#4a2f11darkolivegreen
#4a2f11darkolivegreen
Secondary
#eaa5a4burlywood
#eaa5a4burlywood
Secondary foreground
#4a1211maroon
#4a1211maroon
Muted
#e8e3e3gainsboro
#1c1717black
Muted foreground
#594f4fdimgray
#b0a6a6darkgray
Accent
#e9eaa4palegoldenrod
#e9eaa4palegoldenrod
Accent foreground
#494a11darkolivegreen
#494a11darkolivegreen
Destructive
#9d1301darkred
#fe3a20orangered
Destructive foreground
#ffd7d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eac8a4wheat
#eac8a4wheat

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card19.19:1AAA
Primary button7.79:1AAA
Secondary button7.52:1AAA
Muted text6.21:1AA
Accent7.36:1AAA
Destructive6.27:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.25:1AAA
Primary button7.79:1AAA
Secondary button7.52:1AAA
Muted text7.48:1AAA
Accent7.36:1AAA
Destructive3.60:1AA Large

CSS variables

Paste this into your globals.css to use Publicity in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 69.626);
  --foreground: oklch(0.152 0.017 73.35);
  --muted: oklch(0.919 0.006 18.462);
  --muted-foreground: oklch(0.438 0.013 18.837);
  --popover: oklch(0.993 0.002 69.626);
  --popover-foreground: oklch(0.152 0.017 73.35);
  --card: oklch(0.986 0.005 69.601);
  --card-foreground: oklch(0.137 0.015 76.866);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.853 0.061 68.734);
  --primary-foreground: oklch(0.332 0.059 64.932);
  --secondary: oklch(0.788 0.081 20.15);
  --secondary-foreground: oklch(0.28 0.085 25.341);
  --accent: oklch(0.919 0.089 108.835);
  --accent-foreground: oklch(0.397 0.076 110.361);
  --destructive: oklch(0.445 0.172 31.061);
  --destructive-foreground: oklch(0.911 0.046 26.855);
  --ring: oklch(0.853 0.061 68.734);
  --chart-1: oklch(0.853 0.061 68.734);
  --chart-2: oklch(0.788 0.081 20.15);
  --chart-3: oklch(0.919 0.089 108.835);
  --chart-4: oklch(0.816 0.069 19.796);
  --chart-5: oklch(0.854 0.064 68.676);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.018 73.687);
  --foreground: oklch(0.993 0.001 69.642);
  --muted: oklch(0.21 0.009 19.038);
  --muted-foreground: oklch(0.733 0.012 18.605);
  --popover: oklch(0.152 0.018 73.687);
  --popover-foreground: oklch(0.993 0.001 69.642);
  --card: oklch(0.166 0.021 70.641);
  --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.853 0.061 68.734);
  --primary-foreground: oklch(0.332 0.059 64.932);
  --secondary: oklch(0.788 0.081 20.15);
  --secondary-foreground: oklch(0.28 0.085 25.341);
  --accent: oklch(0.919 0.089 108.835);
  --accent-foreground: oklch(0.397 0.076 110.361);
  --destructive: oklch(0.65 0.234 31.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.853 0.061 68.734);
  --chart-1: oklch(0.853 0.061 68.734);
  --chart-2: oklch(0.788 0.081 20.15);
  --chart-3: oklch(0.919 0.089 108.835);
  --chart-4: oklch(0.816 0.069 19.796);
  --chart-5: oklch(0.854 0.064 68.676);
}