Sociable for shadcn/ui

Sociable is a shadcn/ui theme built around a muted light green primary color (#b8cfb5) with muted light green accents (#b5cfbe). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the muted light green primary (#b8cfb5) on a green-tinted background (#060a05).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#060a05black
Foreground
#040d03black
#f9fbf9mintcream
Card
#f4fcf3honeydew
#080d07black
Card foreground
#030802black
#fcfdfcwhite
Popover
#f8fdf7mintcream
#060a05black
Popover foreground
#040d03black
#f9fbf9mintcream
Primary
#b8cfb5silver
#b8cfb5silver
Primary foreground
#233120darkslategray
#233120darkslategray
Secondary
#c5cfb5silver
#c5cfb5silver
Secondary foreground
#2b3120darkslategray
#2b3120darkslategray
Muted
#dfe3d9gainsboro
#22261cblack
Muted foreground
#484847darkslategray
#b8b8b7silver
Accent
#b5cfbesilver
#b5cfbesilver
Accent foreground
#203127darkslategray
#203127darkslategray
Destructive
#b52d12firebrick
#ea4e2etomato
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b8cfb5silver
#b8cfb5silver

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.31:1AAA
Primary button8.23:1AAA
Secondary button8.27:1AAA
Muted text7.02:1AAA
Accent8.23:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.20:1AAA
Primary button8.23:1AAA
Secondary button8.27:1AAA
Muted text7.74:1AAA
Accent8.23:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.01 141.563);
  --foreground: oklch(0.143 0.031 139.622);
  --muted: oklch(0.91 0.014 123.162);
  --muted-foreground: oklch(0.401 0.002 123.022);
  --popover: oklch(0.988 0.01 141.563);
  --popover-foreground: oklch(0.143 0.031 139.622);
  --card: oklch(0.983 0.015 141.548);
  --card-foreground: oklch(0.124 0.026 139.551);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.83 0.043 141.447);
  --primary-foreground: oklch(0.296 0.036 141.255);
  --secondary: oklch(0.839 0.036 123.599);
  --secondary-foreground: oklch(0.303 0.031 124.552);
  --accent: oklch(0.83 0.036 157.755);
  --accent-foreground: oklch(0.296 0.03 156.274);
  --destructive: oklch(0.51 0.176 32.848);
  --destructive-foreground: oklch(0.991 0.004 31.05);
  --ring: oklch(0.83 0.043 141.447);
  --chart-1: oklch(0.83 0.043 141.447);
  --chart-2: oklch(0.839 0.036 123.599);
  --chart-3: oklch(0.83 0.036 157.755);
  --chart-4: oklch(0.86 0.032 123.497);
  --chart-5: oklch(0.832 0.049 141.427);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.014 140.664);
  --foreground: oklch(0.986 0.002 141.585);
  --muted: oklch(0.262 0.019 124.048);
  --muted-foreground: oklch(0.783 0.002 122.969);
  --popover: oklch(0.137 0.014 140.664);
  --popover-foreground: oklch(0.986 0.002 141.585);
  --card: oklch(0.152 0.016 140.833);
  --card-foreground: oklch(0.993 0.001 141.589);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.83 0.043 141.447);
  --primary-foreground: oklch(0.296 0.036 141.255);
  --secondary: oklch(0.839 0.036 123.599);
  --secondary-foreground: oklch(0.303 0.031 124.552);
  --accent: oklch(0.83 0.036 157.755);
  --accent-foreground: oklch(0.296 0.03 156.274);
  --destructive: oklch(0.636 0.198 33.193);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.83 0.043 141.447);
  --chart-1: oklch(0.83 0.043 141.447);
  --chart-2: oklch(0.839 0.036 123.599);
  --chart-3: oklch(0.83 0.036 157.755);
  --chart-4: oklch(0.86 0.032 123.497);
  --chart-5: oklch(0.832 0.049 141.427);
}