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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 5.67:1 | AA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 4.59:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 5.67:1 | AA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 5.35:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 4.02:1 | AA Large |
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);
}