Gregarious is a shadcn/ui theme built around a vivid deep blue primary color (#050c42) with muted light blue accents (#bcbfd7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep blue primary (#050c42) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #030517black | #ffffffwhite |
| Card | #ffffffwhite | #010204black |
| Card foreground | #030517black | #ffffffwhite |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #030517black | #ffffffwhite |
| Primary | #050c42midnightblue | #050c42midnightblue |
| Primary foreground | #8491f6cornflowerblue | #8491f6cornflowerblue |
| Secondary | #d5d6e2gainsboro | #131415black |
| Secondary foreground | #36394edarkslategray | #a9aab1darkgray |
| Muted | #d2d5eagainsboro | #15182dblack |
| Muted foreground | #606062dimgray | #9d9d9fdarkgray |
| Accent | #bcbfd7lightsteelblue | #22232bdarkslategray |
| Accent foreground | #24273ddarkslategray | #b8b9c7silver |
| Destructive | #9c1902darkred | #fc4727orangered |
| Destructive foreground | #fed8d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #050c42midnightblue | #050c42midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 4.30:1 | AA Large |
| Accent | 8.08:1 | AAA |
| Destructive | 6.25:1 | AA |
| Text on background | 20.78:1 | AAA |
| Text on card | 20.78:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 3.46: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.126 0.041 270.185);
--muted: oklch(0.876 0.029 279.791);
--muted-foreground: oklch(0.49 0.003 280.244);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.041 270.185);
--card: oklch(1 0 180);
--card-foreground: oklch(0.126 0.041 270.185);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.199 0.101 267.709);
--primary-foreground: oklch(0.69 0.148 276.119);
--secondary: oklch(0.879 0.016 280.048);
--secondary-foreground: oklch(0.352 0.037 278.478);
--accent: oklch(0.81 0.033 279.656);
--accent-foreground: oklch(0.281 0.04 277.747);
--destructive: oklch(0.446 0.167 31.904);
--destructive-foreground: oklch(0.914 0.043 29.71);
--ring: oklch(0.199 0.101 267.709);
--chart-1: oklch(0.199 0.101 267.709);
--chart-2: oklch(0.879 0.016 280.048);
--chart-3: oklch(0.81 0.033 279.656);
--chart-4: oklch(0.906 0.012 280.118);
--chart-5: oklch(0.199 0.104 266.969);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.012 275.251);
--foreground: oklch(1 0 180);
--muted: oklch(0.218 0.041 276.677);
--muted-foreground: oklch(0.698 0.002 280.275);
--popover: oklch(0.081 0.012 275.251);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.081 0.012 275.251);
--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.199 0.101 267.709);
--primary-foreground: oklch(0.69 0.148 276.119);
--secondary: oklch(0.19 0.004 280.026);
--secondary-foreground: oklch(0.74 0.01 280.11);
--accent: oklch(0.257 0.015 279.335);
--accent-foreground: oklch(0.79 0.019 279.942);
--destructive: oklch(0.658 0.222 32.339);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.199 0.101 267.709);
--chart-1: oklch(0.199 0.101 267.709);
--chart-2: oklch(0.19 0.004 280.026);
--chart-3: oklch(0.257 0.015 279.335);
--chart-4: oklch(0.223 0.005 279.986);
--chart-5: oklch(0.199 0.104 266.969);
}