Github Light Theme - Gray is a shadcn/ui theme built around a near-black primary color (#000000) with neutral gray accents (#c9c9c9). The light mode uses a neutral background (#f0f0f0). Dark mode keeps the near-black primary (#000000) on a neutral background (#f0f0f0).
| Token | Light | Dark |
|---|---|---|
| Background | #f0f0f0whitesmoke | #f0f0f0whitesmoke |
| Foreground | #000000black | #000000black |
| Card | #ebebeblinen | #ebebeblinen |
| Card foreground | #000000black | #000000black |
| Popover | #e8e8e8lavender | #e8e8e8lavender |
| Popover foreground | #000000black | #000000black |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #bfbfbfsilver | #bfbfbfsilver |
| Secondary foreground | #262626darkslategray | #262626darkslategray |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #c9c9c9silver | #c9c9c9silver |
| Accent foreground | #303030darkslategray | #303030darkslategray |
| Destructive | #9d1010darkred | #9d1010darkred |
| Destructive foreground | #fce3e3mistyrose | #fce3e3mistyrose |
| Border | #e3e3e3gainsboro | #e3e3e3gainsboro |
| Input | #dbdbdbgainsboro | #dbdbdbgainsboro |
| Ring | #000000black | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.37:1 | AAA |
| Text on card | 17.55:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 18.37:1 | AAA |
| Text on card | 17.55:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.84:1 | AA |
Paste this into your globals.css to use Github Light Theme - Gray in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.954 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.931 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.939 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.916 0 180);
--input: oklch(0.892 0 180);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.837 0 171.254);
--accent-foreground: oklch(0.311 0 180);
--destructive: oklch(0.444 0.172 28.037);
--destructive-foreground: oklch(0.937 0.027 17.649);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.837 0 171.254);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.954 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.931 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.939 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.916 0 180);
--input: oklch(0.892 0 180);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.837 0 171.254);
--accent-foreground: oklch(0.311 0 180);
--destructive: oklch(0.444 0.172 28.037);
--destructive-foreground: oklch(0.937 0.027 17.649);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.837 0 171.254);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0 0 0);
}