Gang is a shadcn/ui theme built around a vivid light green primary color (#c9fdd5) with vivid light purple accents (#fdc9f1). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid light green primary (#c9fdd5) on a green-tinted background (#060f08).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #060f08black |
| Foreground | #030c05black | #ffffffwhite |
| Card | #fbfefbwhite | #060f08black |
| Card foreground | #030c05black | #ffffffwhite |
| Popover | #fbfefbwhite | #060f08black |
| Popover foreground | #030c05black | #ffffffwhite |
| Primary | #c9fdd5gainsboro | #c9fdd5gainsboro |
| Primary foreground | #022c0cblack | #022c0cblack |
| Secondary | #fdc9f1mistyrose | #fdc9f1mistyrose |
| Secondary foreground | #8f056fpurple | #8f056fpurple |
| Muted | #ded8ddgainsboro | #272125darkslategray |
| Muted foreground | #544f53darkslategray | #b0abafdarkgray |
| Accent | #fdc9f1mistyrose | #fdc9f1mistyrose |
| Accent foreground | #8f056fpurple | #8f056fpurple |
| Destructive | #7f350bsaddlebrown | #ed7631tomato |
| Destructive foreground | #fad6c2peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9fdd5gainsboro | #c9fdd5gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 13.51:1 | AAA |
| Secondary button | 6.11:1 | AA |
| Muted text | 5.73:1 | AA |
| Accent | 6.11:1 | AA |
| Destructive | 6.39:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 13.51:1 | AAA |
| Secondary button | 6.11:1 | AA |
| Muted text | 6.99:1 | AA |
| Accent | 6.11:1 | AA |
| Destructive | 7.22:1 | AAA |
Paste this into your globals.css to use Gang in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 153.155);
--foreground: oklch(0.141 0.024 152.328);
--muted: oklch(0.889 0.009 333.396);
--muted-foreground: oklch(0.434 0.009 333.565);
--popover: oklch(0.994 0.005 153.155);
--popover-foreground: oklch(0.141 0.024 152.328);
--card: oklch(0.994 0.005 153.155);
--card-foreground: oklch(0.141 0.024 152.328);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.948 0.076 151.856);
--primary-foreground: oklch(0.257 0.074 147.263);
--secondary: oklch(0.893 0.078 334.592);
--secondary-foreground: oklch(0.438 0.186 341.528);
--accent: oklch(0.893 0.078 334.592);
--accent-foreground: oklch(0.438 0.186 341.528);
--destructive: oklch(0.425 0.113 45.269);
--destructive-foreground: oklch(0.902 0.048 51.898);
--ring: oklch(0.948 0.076 151.856);
--chart-1: oklch(0.948 0.076 151.856);
--chart-2: oklch(0.893 0.078 334.592);
--chart-3: oklch(0.893 0.078 334.592);
--chart-4: oklch(0.921 0.056 334.199);
--chart-5: oklch(0.949 0.078 151.811);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.022 151.95);
--foreground: oklch(1 0 180);
--muted: oklch(0.255 0.012 333.964);
--muted-foreground: oklch(0.746 0.008 333.406);
--popover: oklch(0.155 0.022 151.95);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.022 151.95);
--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.948 0.076 151.856);
--primary-foreground: oklch(0.257 0.074 147.263);
--secondary: oklch(0.893 0.078 334.592);
--secondary-foreground: oklch(0.438 0.186 341.528);
--accent: oklch(0.893 0.078 334.592);
--accent-foreground: oklch(0.438 0.186 341.528);
--destructive: oklch(0.693 0.167 47.081);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.948 0.076 151.856);
--chart-1: oklch(0.948 0.076 151.856);
--chart-2: oklch(0.893 0.078 334.592);
--chart-3: oklch(0.893 0.078 334.592);
--chart-4: oklch(0.921 0.056 334.199);
--chart-5: oklch(0.949 0.078 151.811);
}