Sociable for shadcn/ui

Sociable is a shadcn/ui theme built around a deep green primary color (#3c4c24) with muted light green accents (#c8cec0). The light mode uses a neutral background (#fdfefb). Dark mode keeps the deep green primary (#3c4c24) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfefbwhite
#000000black
Foreground
#0e1405black
#fdfdfcwhite
Card
#fbfdf6snow
#030303black
Card foreground
#0b1004black
#ffffffwhite
Popover
#fbfdf6snow
#030303black
Popover foreground
#0b1004black
#ffffffwhite
Primary
#3c4c24darkolivegreen
#3c4c24darkolivegreen
Primary foreground
#d4e1c1lightgrey
#d4e1c1lightgrey
Secondary
#d9dad7gainsboro
#212220black
Secondary foreground
#40423ddarkslategray
#babcb9silver
Muted
#eeefeblinen
#121410black
Muted foreground
#4d4f4adarkslategray
#b3b5b0darkgray
Accent
#c8cec0silver
#373b30darkslategray
Accent foreground
#2f3328darkslategray
#d0d3calightgrey
Destructive
#9d1a06darkred
#f7472btomato
Destructive foreground
#feddd8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3c4c24darkolivegreen
#3c4c24darkolivegreen

Contrast

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

Light mode
Text on background18.51:1AAA
Text on card18.82:1AAA
Primary button6.83:1AA
Secondary button7.26:1AAA
Muted text7.19:1AAA
Accent8.01:1AAA
Destructive6.38:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button6.83:1AA
Secondary button8.35:1AAA
Muted text8.94:1AAA
Accent7.58:1AAA
Destructive3.56: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.996 0.005 124.414);
  --foreground: oklch(0.181 0.031 126.338);
  --muted: oklch(0.951 0.006 124.442);
  --muted-foreground: oklch(0.424 0.008 124.611);
  --popover: oklch(0.991 0.01 124.483);
  --popover-foreground: oklch(0.164 0.027 125.351);
  --card: oklch(0.991 0.01 124.483);
  --card-foreground: oklch(0.164 0.027 125.351);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.391 0.064 127.04);
  --primary-foreground: oklch(0.892 0.045 125.083);
  --secondary: oklch(0.887 0.004 124.415);
  --secondary-foreground: oklch(0.377 0.009 124.687);
  --accent: oklch(0.842 0.019 124.675);
  --accent-foreground: oklch(0.315 0.02 125.279);
  --destructive: oklch(0.45 0.168 31.411);
  --destructive-foreground: oklch(0.922 0.037 28.191);
  --ring: oklch(0.391 0.064 127.04);
  --chart-1: oklch(0.391 0.064 127.04);
  --chart-2: oklch(0.887 0.004 124.415);
  --chart-3: oklch(0.842 0.019 124.675);
  --chart-4: oklch(0.91 0.003 124.399);
  --chart-5: oklch(0.396 0.069 127.259);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.003 124.381);
  --muted: oklch(0.188 0.01 125.091);
  --muted-foreground: oklch(0.77 0.007 124.471);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.391 0.064 127.04);
  --primary-foreground: oklch(0.892 0.045 125.083);
  --secondary: oklch(0.25 0.003 124.493);
  --secondary-foreground: oklch(0.792 0.004 124.418);
  --accent: oklch(0.344 0.019 125.155);
  --accent-foreground: oklch(0.862 0.014 124.575);
  --destructive: oklch(0.651 0.217 31.654);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.391 0.064 127.04);
  --chart-1: oklch(0.391 0.064 127.04);
  --chart-2: oklch(0.25 0.003 124.493);
  --chart-3: oklch(0.344 0.019 125.155);
  --chart-4: oklch(0.282 0.003 124.502);
  --chart-5: oklch(0.396 0.069 127.259);
}