GitHub Sharp is a shadcn/ui theme built around a muted deep blue primary color (#24292e) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#fafafa). Dark mode keeps the muted deep blue primary (#24292e) on a neutral background (#fafafa).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #fafafasnow |
| Foreground | #24292edarkslategray | #24292edarkslategray |
| Card | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Card foreground | #191c1fblack | #191c1fblack |
| Popover | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Popover foreground | #0d0f11black | #0d0f11black |
| Primary | #24292edarkslategray | #24292edarkslategray |
| Primary foreground | #bac2c9silver | #bac2c9silver |
| Secondary | #bebfc1silver | #bebfc1silver |
| Secondary foreground | #252627darkslategray | #252627darkslategray |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Accent foreground | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Destructive | #780c02maroon | #780c02maroon |
| Destructive foreground | #fdb6aflightpink | #fdb6aflightpink |
| Border | #edededwhitesmoke | #edededwhitesmoke |
| Input | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Ring | #24292edarkslategray | #24292edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 14.04:1 | AAA |
| Text on card | 15.66:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.73:1 | AA |
| Text on background | 14.04:1 | AAA |
| Text on card | 15.66:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.73:1 | AA |
Paste this into your globals.css to use GitHub Sharp in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.277 0.011 248.24);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.169 0.005 248.117);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.225 0.008 248.197);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.277 0.011 248.24);
--primary-foreground: oklch(0.81 0.013 247.99);
--secondary: oklch(0.805 0.002 247.851);
--secondary-foreground: oklch(0.269 0.002 247.892);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.366 0.141 30.55);
--destructive-foreground: oklch(0.84 0.085 24.851);
--ring: oklch(0.277 0.011 248.24);
--chart-1: oklch(0.277 0.011 248.24);
--chart-2: oklch(0.805 0.002 247.851);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.829 0.002 247.847);
--chart-5: oklch(0.277 0.014 248.343);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.277 0.011 248.24);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.169 0.005 248.117);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.225 0.008 248.197);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.277 0.011 248.24);
--primary-foreground: oklch(0.81 0.013 247.99);
--secondary: oklch(0.805 0.002 247.851);
--secondary-foreground: oklch(0.269 0.002 247.892);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.366 0.141 30.55);
--destructive-foreground: oklch(0.84 0.085 24.851);
--ring: oklch(0.277 0.011 248.24);
--chart-1: oklch(0.277 0.011 248.24);
--chart-2: oklch(0.805 0.002 247.851);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.829 0.002 247.847);
--chart-5: oklch(0.277 0.014 248.343);
}