sindresorhus/github-markdown-css

The minimal amount of CSS to replicate the GitHub Markdown style

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 24 minutes ago
Added to GitGenius on September 7th, 2026
Created on May 7th, 2014
Open Issues & Pull Requests: 1 (+0)
GitHub issues: Enabled
Number of forks: 2,082
Total Stargazers: 8,927 (+0)
Total Subscribers: 91 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 70.5 days
Mean response time: 277.2 days
90th percentile: 884.1 days
Tracked items: 21

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 0% of issues opened in the past year have been closed. Three people close 90% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 72 days
Stale 30+ days: 1
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (1)
  • help wanted (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

github-markdown-css is a CSS stylesheet that replicates GitHub's Markdown styling.

The project solves the problem of applying GitHub's visual design to Markdown content rendered outside of GitHub's platform. It provides a minimal CSS file that styles HTML generated from Markdown, allowing developers to display user-generated or documentation Markdown with GitHub's familiar appearance. The stylesheet is generated programmatically rather than hand-written, ensuring consistency with GitHub's actual styling.

Developers should choose this tool when building applications that display Markdown and want it to match GitHub's visual style without building custom CSS. It suits projects that render Markdown via GitHub's own API or other Markdown parsers, and works particularly well when paired with syntax highlighting tools like starry-night for code blocks. The package includes seven theme variants covering light, dark, dark-dimmed, dark high-contrast, and colorblind-accessible versions, with the default theme automatically switching between light and dark based on system preferences. Implementation requires adding a markdown-body class to the container and setting an appropriate width, with GitHub's standard being 980px width and 45px padding on desktop.

The project is generated from a separate repository, meaning direct contributions to the CSS itself are not accepted here; changes must be made to the generation tool instead. The development workflow involves running a build command to update the stylesheet when needed. The tool is available through multiple distribution channels including npm, CDNJS, and manual download.