> The minimal amount of CSS to replicate the GitHub Markdown style
[](http://bgoonz.com/github-markdown-css)
## [Demo](https://bgoonz.com/github-markdown-css)
## Install
> with npm:
```sh
npm install github-markdown-css
```
## Usage
Import the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it. GitHub uses `980px` width and `45px` padding, and `15px` padding for mobile.
```html
Unicorns
All the things
```
If you want code syntax highlighted, use GitHub Flavored Markdown rendered from [GitHub's `/markdown` API](https://docs.github.com/en/free-pro-team@latest/rest/reference/markdown).
## How
See [`markdown-css`](https://github.com/bgoonz/markdown-css) for how it's generated and ability to generate your own.
## Dev
Run `npm run make` to update the CSS.