Sociable is a shadcn/ui theme built around a near-black primary color (#090701) with near-black accents (#010309). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the near-black primary (#090701) on a yellow-tinted background (#0b0905).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #0b0905black |
| Foreground | #110d03black | #fdfdfcwhite |
| Card | #fcfbf8snow | #0b0905black |
| Card foreground | #110d03black | #fdfdfcwhite |
| Popover | #fcfbf8snow | #0b0905black |
| Popover foreground | #110d03black | #fdfdfcwhite |
| Primary | #090701black | #090701black |
| Primary foreground | #ba8d1cdarkgoldenrod | #ba8d1cdarkgoldenrod |
| Secondary | #010309black | #010309black |
| Secondary foreground | #afc2f3lightsteelblue | #afc2f3lightsteelblue |
| Muted | #e3e5e8gainsboro | #17191cblack |
| Muted foreground | #40434adarkslategray | #b5b8bfsilver |
| Accent | #010309black | #010309black |
| Accent foreground | #afc2f3lightsteelblue | #afc2f3lightsteelblue |
| Destructive | #842101maroon | #fe5016orangered |
| Destructive foreground | #ffcab8peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #090701black | #090701black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.69:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 11.59:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 11.59:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 11.59:1 | AAA |
| Muted text | 8.88:1 | AAA |
| Accent | 11.59:1 | AAA |
| Destructive | 3.30:1 | AA Large |
Paste this into your globals.css to use Sociable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 88.815);
--foreground: oklch(0.161 0.022 91.682);
--muted: oklch(0.921 0.004 268.76);
--muted-foreground: oklch(0.382 0.012 268.537);
--popover: oklch(0.987 0.004 88.815);
--popover-foreground: oklch(0.161 0.022 91.682);
--card: oklch(0.987 0.004 88.815);
--card-foreground: oklch(0.161 0.022 91.682);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.127 0.02 95.565);
--primary-foreground: oklch(0.67 0.13 84.415);
--secondary: oklch(0.101 0.02 257.723);
--secondary-foreground: oklch(0.817 0.072 267.956);
--accent: oklch(0.101 0.02 257.723);
--accent-foreground: oklch(0.817 0.072 267.956);
--destructive: oklch(0.407 0.139 36.117);
--destructive-foreground: oklch(0.88 0.065 39.24);
--ring: oklch(0.127 0.02 95.565);
--chart-1: oklch(0.127 0.02 95.565);
--chart-2: oklch(0.101 0.02 257.723);
--chart-3: oklch(0.101 0.02 257.723);
--chart-4: oklch(0.14 0.032 261.436);
--chart-5: oklch(0.128 0.02 95.797);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.011 92.523);
--foreground: oklch(0.993 0.001 88.795);
--muted: oklch(0.212 0.006 268.57);
--muted-foreground: oklch(0.783 0.01 268.696);
--popover: oklch(0.139 0.011 92.523);
--popover-foreground: oklch(0.993 0.001 88.795);
--card: oklch(0.139 0.011 92.523);
--card-foreground: oklch(0.993 0.001 88.795);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.127 0.02 95.565);
--primary-foreground: oklch(0.67 0.13 84.415);
--secondary: oklch(0.101 0.02 257.723);
--secondary-foreground: oklch(0.817 0.072 267.956);
--accent: oklch(0.101 0.02 257.723);
--accent-foreground: oklch(0.817 0.072 267.956);
--destructive: oklch(0.669 0.219 36.266);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.127 0.02 95.565);
--chart-1: oklch(0.127 0.02 95.565);
--chart-2: oklch(0.101 0.02 257.723);
--chart-3: oklch(0.101 0.02 257.723);
--chart-4: oklch(0.14 0.032 261.436);
--chart-5: oklch(0.128 0.02 95.797);
}