primer-css 0 travis-ci npm

The base coat of GitHub. Our internal CSS toolkit and guidelines.

2 years after

Primer CSS

NPM version Build Status

Primer is the CSS toolkit that powers GitHub's front-end design. It's purposefully limited to common components to provide our developers with the most flexibility, and to keep GitHub uniquely GitHubby. It's built with SCSS and available via NPM, so it's easy to include all or part of it within your own project.

This repository is a compilation of several CSS modules.


This repository is distributed with npm. After installing npm, you can install primer-css with this command.

$ npm install --save primer-css


The source files included are written in Sass (scss) You can simply point your sass include-path at your node_modules directory and import it like this.

@import "primer-css/index.scss";

You can also import specific portions of the module by importing those partials from the /lib/ folder. Make sure you import any requirements along with the modules.


For a compiled css version of this module, a npm script is included that will output a css version to build/build.css The built css file is also included in the npm package.

$ npm run build


You can read more about primer in the docs.


MIT © GitHub

Related Repositories



Stylesheets for rendering GitHub Flavored Markdown with Primer. ...



Jekyll project for generating styled patterns from a folder of markup snippets. ...



Create Style Guides in HTML and CSS with Sass & Compass ...



Primer (Github's) CSS framework implementation in Rails ...



The core modules of the primer framework. Shared between our product and marketi ...

Top Contributors

mdo jonrohan muan amosie bkeepers josh cvrebert jedcn RobLoach thomastuts vsn4ik BrianCS cmcky croaky flovan jackmoore jasonlong jensechu Johann-S jdan Jastrzebowski kennethlove lukecaputo tarebyte mortonfox nicoder nickmccurdy outsideris pborreli iamphill


-   v4.4.0 zip tar
-   v4.3.0 zip tar
-   v4.2.0 zip tar
-   v4.1.0 zip tar
-   v4.0.2 zip tar
-   v4.0.1 zip tar
-   v4.0.0 zip tar
-   v3.0.1 zip tar
-   v3.0.0 zip tar
-   v2.7.1 zip tar
-   v2.7.0 zip tar
-   v2.6.0 zip tar
-   v2.5.0 zip tar
-   v2.4.0 zip tar
-   v2.3.5 zip tar
-   v2.3.4 zip tar
-   v2.3.3 zip tar
-   v2.3.2 zip tar
-   v2.3.1 zip tar
-   v2.3.0 zip tar
-   v2.2.1 zip tar
-   v2.2.0 zip tar
-   v2.1.0 zip tar
-   v2.0.3 zip tar
-   v2.0.2 zip tar
-   v1.1.3 zip tar
-   v1.0.1 zip tar
-   v0.39.0 zip tar
-   v0.38.0 zip tar
-   v0.37.0 zip tar