Society is a shadcn/ui theme built around a vivid purple primary color (#dd1dc7) with vivid pink accents (#dd1d67). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid purple primary (#dd1dc7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #000000black |
| Foreground | #0d020cblack | #ffffffwhite |
| Card | #fefbfewhite | #000000black |
| Card foreground | #0d020cblack | #ffffffwhite |
| Popover | #fefbfewhite | #000000black |
| Popover foreground | #0d020cblack | #ffffffwhite |
| Primary | #dd1dc7deeppink | #dd1dc7deeppink |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #931dddblueviolet | #931dddblueviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3edf7whitesmoke | #0e0812black |
| Muted foreground | #4a3e51darkslategray | #baaec1silver |
| Accent | #dd1d67mediumvioletred | #dd1d67mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #dc5009chocolate | #f6661echocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dd1dc7deeppink | #dd1dc7deeppink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 4.13:1 | AA Large |
| Secondary button | 6.05:1 | AA |
| Muted text | 8.73:1 | AAA |
| Accent | 4.72:1 | AA |
| Destructive | 4.04:1 | AA Large |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 4.13:1 | AA Large |
| Secondary button | 6.05:1 | AA |
| Muted text | 9.33:1 | AAA |
| Accent | 4.72:1 | AA |
| Destructive | 6.81:1 | AA |
Paste this into your globals.css to use Society in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 329.189);
--foreground: oklch(0.122 0.035 331.039);
--muted: oklch(0.955 0.014 312.883);
--muted-foreground: oklch(0.383 0.034 312.378);
--popover: oklch(0.991 0.005 329.189);
--popover-foreground: oklch(0.122 0.035 331.039);
--card: oklch(0.991 0.005 329.189);
--card-foreground: oklch(0.122 0.035 331.039);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.624 0.266 334.171);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.532 0.258 306.492);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.585 0.222 6.423);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.614 0.188 40.303);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.624 0.266 334.171);
--chart-1: oklch(0.624 0.266 334.171);
--chart-2: oklch(0.532 0.258 306.492);
--chart-3: oklch(0.585 0.222 6.423);
--chart-4: oklch(0.552 0.258 307.215);
--chart-5: oklch(0.63 0.271 334.298);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.148 0.023 312.153);
--muted-foreground: oklch(0.767 0.029 312.729);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.624 0.266 334.171);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.532 0.258 306.492);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.585 0.222 6.423);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.682 0.192 42.395);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.624 0.266 334.171);
--chart-1: oklch(0.624 0.266 334.171);
--chart-2: oklch(0.532 0.258 306.492);
--chart-3: oklch(0.585 0.222 6.423);
--chart-4: oklch(0.552 0.258 307.215);
--chart-5: oklch(0.63 0.271 334.298);
}