Gang is a shadcn/ui theme built around a purple primary color (#71285e) with green accents (#28713b). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#71285e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #050103black | #fbf8fbsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #050103black | #fbf8fbsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #050103black | #fbf8fbsnow |
| Primary | #71285epurple | #71285epurple |
| Primary foreground | #f2d9ebmistyrose | #f2d9ebmistyrose |
| Secondary | #28713bforestgreen | #28713bforestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dcefe1gainsboro | #102315black |
| Muted foreground | #505351darkslategray | #acafaddarkgray |
| Accent | #28713bforestgreen | #28713bforestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9f240ffirebrick | #e03315orangered |
| Destructive foreground | #fce7e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #71285epurple | #71285epurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.74:1 | AAA |
| Text on card | 20.74:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 5.95:1 | AA |
| Muted text | 6.49:1 | AA |
| Accent | 5.95:1 | AA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 5.95:1 | AA |
| Muted text | 7.42:1 | AAA |
| Accent | 5.95:1 | AA |
| Destructive | 4.50:1 | AA |
Paste this into your globals.css to use Gang in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.082 0.026 335.456);
--muted: oklch(0.935 0.029 153.975);
--muted-foreground: oklch(0.439 0.006 154.297);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.082 0.026 335.456);
--card: oklch(1 0 180);
--card-foreground: oklch(0.082 0.026 335.456);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.404 0.123 339.568);
--primary-foreground: oklch(0.911 0.036 335.2);
--secondary: oklch(0.49 0.112 149.2);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.49 0.112 149.2);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.461 0.162 32.212);
--destructive-foreground: oklch(0.944 0.024 29.576);
--ring: oklch(0.404 0.123 339.568);
--chart-1: oklch(0.404 0.123 339.568);
--chart-2: oklch(0.49 0.112 149.2);
--chart-3: oklch(0.49 0.112 149.2);
--chart-4: oklch(0.524 0.12 149.131);
--chart-5: oklch(0.405 0.129 339.855);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.004 334.603);
--muted: oklch(0.236 0.038 151.135);
--muted-foreground: oklch(0.751 0.005 154.41);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.004 334.603);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.004 334.603);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.404 0.123 339.568);
--primary-foreground: oklch(0.911 0.036 335.2);
--secondary: oklch(0.49 0.112 149.2);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.49 0.112 149.2);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.592 0.212 32.089);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.404 0.123 339.568);
--chart-1: oklch(0.404 0.123 339.568);
--chart-2: oklch(0.49 0.112 149.2);
--chart-3: oklch(0.49 0.112 149.2);
--chart-4: oklch(0.524 0.12 149.131);
--chart-5: oklch(0.405 0.129 339.855);
}