Gregarious is a shadcn/ui theme built around a muted green primary color (#758665) with muted pink accents (#866575). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#758665) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030302black |
| Foreground | #070d03black | #fafbf8snow |
| Card | #ffffffwhite | #030302black |
| Card foreground | #070d03black | #fafbf8snow |
| Popover | #ffffffwhite | #030302black |
| Popover foreground | #070d03black | #fafbf8snow |
| Primary | #758665gray | #758665gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #657586slategray | #657586slategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d9e0e8gainsboro | #171e26black |
| Muted foreground | #525456darkslategray | #a9abaddarkgray |
| Accent | #866575gray | #866575gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d0150bfirebrick | #f42f25crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #758665gray | #758665gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 3.93:1 | AA Large |
| Secondary button | 4.74:1 | AA |
| Muted text | 5.71:1 | AA |
| Accent | 5.09:1 | AA |
| Destructive | 5.52:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 3.93:1 | AA Large |
| Secondary button | 4.74:1 | AA |
| Muted text | 7.26:1 | AAA |
| Accent | 5.09:1 | AA |
| Destructive | 3.98: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.148 0.027 128.082);
--muted: oklch(0.904 0.013 249.782);
--muted-foreground: oklch(0.445 0.004 249.724);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.148 0.027 128.082);
--card: oklch(1 0 180);
--card-foreground: oklch(0.148 0.027 128.082);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.596 0.052 130.103);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.555 0.033 250.16);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.545 0.048 348.222);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.545 0.215 29.466);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.596 0.052 130.103);
--chart-1: oklch(0.596 0.052 130.103);
--chart-2: oklch(0.555 0.033 250.16);
--chart-3: oklch(0.545 0.048 348.222);
--chart-4: oklch(0.58 0.034 250.163);
--chart-5: oklch(0.604 0.063 130.309);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 128.45);
--foreground: oklch(0.987 0.004 129.174);
--muted: oklch(0.233 0.018 250.319);
--muted-foreground: oklch(0.74 0.003 249.69);
--popover: oklch(0.097 0.009 128.45);
--popover-foreground: oklch(0.987 0.004 129.174);
--card: oklch(0.097 0.009 128.45);
--card-foreground: oklch(0.987 0.004 129.174);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.596 0.052 130.103);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.555 0.033 250.16);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.545 0.048 348.222);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.625 0.231 28.917);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.596 0.052 130.103);
--chart-1: oklch(0.596 0.052 130.103);
--chart-2: oklch(0.555 0.033 250.16);
--chart-3: oklch(0.545 0.048 348.222);
--chart-4: oklch(0.58 0.034 250.163);
--chart-5: oklch(0.604 0.063 130.309);
}