Society for shadcn/ui

Society is a shadcn/ui theme built around a vivid purple primary color (#dd1dc7) with vivid pink accents (#dd1d67). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid purple primary (#dd1dc7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#0d020cblack
#ffffffwhite
Card
#fefbfewhite
#000000black
Card foreground
#0d020cblack
#ffffffwhite
Popover
#fefbfewhite
#000000black
Popover foreground
#0d020cblack
#ffffffwhite
Primary
#dd1dc7deeppink
#dd1dc7deeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#931dddblueviolet
#931dddblueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f3edf7whitesmoke
#0e0812black
Muted foreground
#4a3e51darkslategray
#baaec1silver
Accent
#dd1d67mediumvioletred
#dd1d67mediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#dc5009chocolate
#f6661echocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dd1dc7deeppink
#dd1dc7deeppink

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button4.13:1AA Large
Secondary button6.05:1AA
Muted text8.73:1AAA
Accent4.72:1AA
Destructive4.04:1AA Large
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.13:1AA Large
Secondary button6.05:1AA
Muted text9.33:1AAA
Accent4.72:1AA
Destructive6.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 329.189);
  --foreground: oklch(0.122 0.035 331.039);
  --muted: oklch(0.955 0.014 312.883);
  --muted-foreground: oklch(0.383 0.034 312.378);
  --popover: oklch(0.991 0.005 329.189);
  --popover-foreground: oklch(0.122 0.035 331.039);
  --card: oklch(0.991 0.005 329.189);
  --card-foreground: oklch(0.122 0.035 331.039);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.624 0.266 334.171);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.532 0.258 306.492);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.585 0.222 6.423);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.614 0.188 40.303);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.624 0.266 334.171);
  --chart-1: oklch(0.624 0.266 334.171);
  --chart-2: oklch(0.532 0.258 306.492);
  --chart-3: oklch(0.585 0.222 6.423);
  --chart-4: oklch(0.552 0.258 307.215);
  --chart-5: oklch(0.63 0.271 334.298);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.148 0.023 312.153);
  --muted-foreground: oklch(0.767 0.029 312.729);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.624 0.266 334.171);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.532 0.258 306.492);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.585 0.222 6.423);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.682 0.192 42.395);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.624 0.266 334.171);
  --chart-1: oklch(0.624 0.266 334.171);
  --chart-2: oklch(0.532 0.258 306.492);
  --chart-3: oklch(0.585 0.222 6.423);
  --chart-4: oklch(0.552 0.258 307.215);
  --chart-5: oklch(0.63 0.271 334.298);
}