Gregarious is a shadcn/ui theme built around a vivid deep green primary color (#6f7a0b) with vivid deep indigo accents (#160b7a). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid deep green primary (#6f7a0b) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #030401black |
| Foreground | #040401black | #f9f9f6whitesmoke |
| Card | #fcfdf7snow | #070703black |
| Card foreground | #000000black | #fbfbf9snow |
| Popover | #fefefbwhite | #030401black |
| Popover foreground | #040401black | #f9f9f6whitesmoke |
| Primary | #6f7a0bolive | #6f7a0bolive |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #160b7amidnightblue | #160b7amidnightblue |
| Secondary foreground | #c3bdf9lightsteelblue | #c3bdf9lightsteelblue |
| Muted | #dfdfe2gainsboro | #1d1d20black |
| Muted foreground | #434158darkslategray | #a9a7bedarkgray |
| Accent | #160b7amidnightblue | #160b7amidnightblue |
| Accent foreground | #c3bdf9lightsteelblue | #c3bdf9lightsteelblue |
| Destructive | #a71c06firebrick | #f73e22orangered |
| Destructive foreground | #fee5e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f7a0bolive | #6f7a0bolive |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 4.70:1 | AA |
| Secondary button | 8.79:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 8.79:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 4.70:1 | AA |
| Secondary button | 8.79:1 | AAA |
| Muted text | 7.18:1 | AAA |
| Accent | 8.79:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Gregarious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 111.09);
--foreground: oklch(0.107 0.019 112.713);
--muted: oklch(0.904 0.005 290.91);
--muted-foreground: oklch(0.387 0.039 289.036);
--popover: oklch(0.996 0.004 111.09);
--popover-foreground: oklch(0.107 0.019 112.713);
--card: oklch(0.992 0.008 111.166);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.551 0.123 116.03);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.281 0.169 271.577);
--secondary-foreground: oklch(0.825 0.084 289.004);
--accent: oklch(0.281 0.169 271.577);
--accent-foreground: oklch(0.825 0.084 289.004);
--destructive: oklch(0.47 0.177 31.356);
--destructive-foreground: oklch(0.942 0.028 28.108);
--ring: oklch(0.551 0.123 116.03);
--chart-1: oklch(0.551 0.123 116.03);
--chart-2: oklch(0.281 0.169 271.577);
--chart-3: oklch(0.281 0.169 271.577);
--chart-4: oklch(0.302 0.184 271.147);
--chart-5: oklch(0.558 0.125 116.136);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.011 112.085);
--foreground: oklch(0.981 0.005 111.103);
--muted: oklch(0.232 0.007 290.437);
--muted-foreground: oklch(0.738 0.033 290.159);
--popover: oklch(0.101 0.011 112.085);
--popover-foreground: oklch(0.981 0.005 111.103);
--card: oklch(0.127 0.014 112.085);
--card-foreground: oklch(0.987 0.003 111.073);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.551 0.123 116.03);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.281 0.169 271.577);
--secondary-foreground: oklch(0.825 0.084 289.004);
--accent: oklch(0.281 0.169 271.577);
--accent-foreground: oklch(0.825 0.084 289.004);
--destructive: oklch(0.642 0.224 31.64);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.551 0.123 116.03);
--chart-1: oklch(0.551 0.123 116.03);
--chart-2: oklch(0.281 0.169 271.577);
--chart-3: oklch(0.281 0.169 271.577);
--chart-4: oklch(0.302 0.184 271.147);
--chart-5: oklch(0.558 0.125 116.136);
}