Skip to content
The CSS design system that powers GitHub
Branch: master
Clone or download
Latest commit 6a8733e Apr 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github deploy: try primer/deploy@v3.0.0 Apr 11, 2019
.storybook storybook: bump octicons CSS version Mar 7, 2019
bin migrate: add primer-migrate binary, tests Feb 13, 2019
docs-test docs: mark /packages as removed Feb 12, 2019
docs clean up last redirect instances Apr 9, 2019
fonts update InterUI name to Inter, and update font files Feb 27, 2019
lib lint Apr 3, 2019
pages docs(progress): beef up progress docs, fix #750 Apr 9, 2019
script fix: don't die on npm run publish-storybook Mar 14, 2019
src Fix hide utilities Apr 5, 2019
static hack the header :( Apr 3, 2019
tests fix broken year tests Jan 4, 2019
.browserslistrc build: add .browserslistrc Feb 12, 2019
.eslintrc.json
.gitignore add search index to gitignore Apr 3, 2019
.npmignore Merge pull request #672 from primer/reorg-build Feb 12, 2019
.npmrc npm: move unsafe-perm from .npmrc to args Feb 7, 2019
.stylelintrc.json
CHANGELOG.md Correct PR links Apr 16, 2019
CODE_OF_CONDUCT.md add code of conduct Dec 4, 2018
DEVELOP.md docs: update storybook docs for new setup Mar 6, 2019
LICENSE Happy new year Jan 3, 2018
MIGRATING.md docs: simplify primer-migrate section Feb 13, 2019
README.md docs: make the README flashy, like Components’ Feb 21, 2019
RELEASING.md internal: remove postversion script, update release docs Feb 21, 2019
next.config.js
now.json fix as issues Apr 3, 2019
package-lock.json npm version v12.2.3 Apr 16, 2019
package.json
postcss.config.js chore: lint Feb 12, 2019
prettier.config.js lint: add prettier.config.js Feb 11, 2019

README.md

Primer CSS

The CSS implementation of GitHub's Primer Design System

Migrating

🚨 If you currently use the primer or primer--prefixed npm packages, please read the migration guide!

Install

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

$ npm install --save @primer/css

Usage

The included source files are written in Sass using SCSS syntax. After installing with npm, you can add your project's node_modules directory to your Sass include paths (AKA load paths in Ruby), then import it like this:

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

You can import individual Primer modules directly from the @primer/css package:

@import "@primer/css/core/index.scss";
@import "@primer/css/product/index.scss";
@import "@primer/css/marketing/index.scss";

Development

See DEVELOP.md for development docs.

Releasing (for GitHub staff)

You can find docs about our release process in RELEASING.md.

Documentation

The Primer CSS docs site is deployed from this repo with primer/deploy. See the development docs for more info.

License

MIT © GitHub

You can’t perform that action at this time.