Sociable for shadcn/ui

Sociable is a shadcn/ui theme built around a deep yellow primary color (#816212) with muted light yellow accents (#e5e2dc). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#816212) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#ffffffwhite
#030302black
Foreground
#120d03black
#f9f8f5whitesmoke
Card
#ffffffwhite
#030302black
Card foreground
#120d03black
#f9f8f5whitesmoke
Popover
#ffffffwhite
#030302black
Popover foreground
#120d03black
#f9f8f5whitesmoke
Primary
#816212saddlebrown
#816212saddlebrown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e5e2dcgainsboro
#151514black
Secondary foreground
#524c3ddarkolivegreen
#b0aeabdarkgray
Muted
#ebe7dbantiquewhite
#242014black
Muted foreground
#5e5745darkolivegreen
#bab3a1darkgray
Accent
#e5e2dcgainsboro
#151514black
Accent foreground
#524c3ddarkolivegreen
#b0aeabdarkgray
Destructive
#d24c0fchocolate
#ef5a15orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#816212saddlebrown
#816212saddlebrown

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.36:1AAA
Primary button5.68:1AA
Secondary button6.61:1AA
Muted text5.79:1AA
Accent6.61:1AA
Destructive4.38:1AA Large
Dark mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button5.68:1AA
Secondary button8.27:1AAA
Muted text7.79:1AAA
Accent8.27:1AAA
Destructive3.41: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.163 0.025 91.975);
  --muted: oklch(0.927 0.017 88.9);
  --muted-foreground: oklch(0.458 0.029 89.015);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.163 0.025 91.975);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.163 0.025 91.975);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.515 0.099 84.803);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.914 0.009 88.855);
  --secondary-foreground: oklch(0.418 0.026 89.015);
  --accent: oklch(0.914 0.009 88.855);
  --accent-foreground: oklch(0.418 0.026 89.015);
  --destructive: oklch(0.593 0.18 40.087);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.515 0.099 84.803);
  --chart-1: oklch(0.515 0.099 84.803);
  --chart-2: oklch(0.914 0.009 88.855);
  --chart-3: oklch(0.914 0.009 88.855);
  --chart-4: oklch(0.936 0.007 88.838);
  --chart-5: oklch(0.519 0.101 84.393);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.007 92.301);
  --foreground: oklch(0.98 0.004 88.818);
  --muted: oklch(0.244 0.023 88.917);
  --muted-foreground: oklch(0.767 0.026 88.966);
  --popover: oklch(0.096 0.007 92.301);
  --popover-foreground: oklch(0.98 0.004 88.818);
  --card: oklch(0.096 0.007 92.301);
  --card-foreground: oklch(0.98 0.004 88.818);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.515 0.099 84.803);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.194 0.002 88.85);
  --secondary-foreground: oklch(0.752 0.005 88.835);
  --accent: oklch(0.194 0.002 88.85);
  --accent-foreground: oklch(0.752 0.005 88.835);
  --destructive: oklch(0.657 0.196 40.429);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.515 0.099 84.803);
  --chart-1: oklch(0.515 0.099 84.803);
  --chart-2: oklch(0.194 0.002 88.85);
  --chart-3: oklch(0.194 0.002 88.85);
  --chart-4: oklch(0.228 0.002 88.857);
  --chart-5: oklch(0.519 0.101 84.393);
}