Gregarious is a shadcn/ui theme built around an orange primary color (#be9a55) with violet accents (#9a55be). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#be9a55) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070603black |
| Foreground | #150f05black | #faf8f4whitesmoke |
| Card | #ffffffwhite | #070603black |
| Card foreground | #150f05black | #faf8f4whitesmoke |
| Popover | #ffffffwhite | #070603black |
| Popover foreground | #150f05black | #faf8f4whitesmoke |
| Primary | #be9a55peru | #be9a55peru |
| Primary foreground | #000000black | #000000black |
| Secondary | #55be9amediumaquamarine | #55be9amediumaquamarine |
| Secondary foreground | #000000black | #000000black |
| Muted | #eaf5f1whitesmoke | #0a1511black |
| Muted foreground | #585f5ddimgray | #a0a7a4darkgray |
| Accent | #9a55bedarkorchid | #9a55bedarkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d53e0borangered | #ed450corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #be9a55peru | #be9a55peru |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 9.25:1 | AAA |
| Muted text | 5.86:1 | AA |
| Accent | 4.76:1 | AA |
| Destructive | 4.64:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 9.25:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 4.76:1 | AA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Gregarious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.173 0.023 84.111);
--muted: oklch(0.961 0.012 173.207);
--muted-foreground: oklch(0.48 0.01 172.953);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.173 0.023 84.111);
--card: oklch(1 0 180);
--card-foreground: oklch(0.173 0.023 84.111);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.704 0.098 81.543);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.731 0.113 167.481);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.574 0.168 312.284);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.582 0.195 35.796);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.098 81.543);
--chart-1: oklch(0.704 0.098 81.543);
--chart-2: oklch(0.731 0.113 167.481);
--chart-3: oklch(0.574 0.168 312.284);
--chart-4: oklch(0.747 0.107 168.139);
--chart-5: oklch(0.71 0.103 81.295);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.008 86.764);
--foreground: oklch(0.98 0.006 83.06);
--muted: oklch(0.182 0.017 170.432);
--muted-foreground: oklch(0.721 0.009 173.203);
--popover: oklch(0.12 0.008 86.764);
--popover-foreground: oklch(0.98 0.006 83.06);
--card: oklch(0.12 0.008 86.764);
--card-foreground: oklch(0.98 0.006 83.06);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.704 0.098 81.543);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.731 0.113 167.481);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.574 0.168 312.284);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.631 0.213 35.668);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.098 81.543);
--chart-1: oklch(0.704 0.098 81.543);
--chart-2: oklch(0.731 0.113 167.481);
--chart-3: oklch(0.574 0.168 312.284);
--chart-4: oklch(0.747 0.107 168.139);
--chart-5: oklch(0.71 0.103 81.295);
}