Sociable for shadcn/ui

Sociable is a shadcn/ui theme built around an orange primary color (#b97531) with violet accents (#7531b9). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#b97531) on a neutral background (#080502).

Color palette

TokenLightDark
Background
#ffffffwhite
#080502black
Foreground
#0e0802black
#fbfaf9snow
Card
#ffffffwhite
#080502black
Card foreground
#0e0802black
#fbfaf9snow
Popover
#ffffffwhite
#080502black
Popover foreground
#0e0802black
#fbfaf9snow
Primary
#b97531peru
#b97531peru
Primary foreground
#000000black
#000000black
Secondary
#31b975mediumseagreen
#31b975mediumseagreen
Secondary foreground
#06180fblack
#06180fblack
Muted
#d4ece0gainsboro
#132b1fblack
Muted foreground
#656766dimgray
#989a99darkgray
Accent
#7531b9rebeccapurple
#7531b9rebeccapurple
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b50f03firebrick
#fb1404red
Destructive foreground
#ffeceblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b97531peru
#b97531peru

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.91:1AAA
Primary button5.67:1AA
Secondary button7.29:1AAA
Muted text4.59:1AA
Accent7.22:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button5.67:1AA
Secondary button7.29:1AAA
Muted text5.35:1AA
Accent7.22:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.138 0.021 77.467);
  --muted: oklch(0.923 0.03 164.268);
  --muted-foreground: oklch(0.512 0.003 164.99);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.138 0.021 77.467);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.138 0.021 77.467);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.624 0.118 62.247);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.699 0.152 156.297);
  --secondary-foreground: oklch(0.191 0.03 160.317);
  --accent: oklch(0.481 0.201 302.02);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.49 0.195 29.917);
  --destructive-foreground: oklch(0.958 0.02 22.46);
  --ring: oklch(0.624 0.118 62.247);
  --chart-1: oklch(0.624 0.118 62.247);
  --chart-2: oklch(0.699 0.152 156.297);
  --chart-3: oklch(0.481 0.201 302.02);
  --chart-4: oklch(0.732 0.16 156.243);
  --chart-5: oklch(0.628 0.123 61.709);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.013 75.624);
  --foreground: oklch(0.985 0.001 67.805);
  --muted: oklch(0.263 0.038 160.467);
  --muted-foreground: oklch(0.684 0.003 165.037);
  --popover: oklch(0.119 0.013 75.624);
  --popover-foreground: oklch(0.985 0.001 67.805);
  --card: oklch(0.119 0.013 75.624);
  --card-foreground: oklch(0.985 0.001 67.805);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.624 0.118 62.247);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.699 0.152 156.297);
  --secondary-foreground: oklch(0.191 0.03 160.317);
  --accent: oklch(0.481 0.201 302.02);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.625 0.251 29.76);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.624 0.118 62.247);
  --chart-1: oklch(0.624 0.118 62.247);
  --chart-2: oklch(0.699 0.152 156.297);
  --chart-3: oklch(0.481 0.201 302.02);
  --chart-4: oklch(0.732 0.16 156.243);
  --chart-5: oklch(0.628 0.123 61.709);
}