Skip to content
The CSS design system that powers GitHub
Branch: master
Clone or download
1
Latest commit 203fa4d May 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update .github/CONTRIBUTING.md Apr 30, 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 Merge branch 'master' into anchor-links Apr 30, 2019
fonts update InterUI name to Inter, and update font files Feb 27, 2019
lib lint Apr 3, 2019
pages Merge branch 'master' into update-docs May 24, 2019
script chore: delete script/check-links, dependencies May 14, 2019
src Merge pull request #737 from primer/brocs_test May 14, 2019
static hack the header :( Apr 3, 2019
.browserslistrc build: add .browserslistrc Feb 12, 2019
.eslintrc.json lint: add eslint configs Feb 11, 2019
.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 lint: disable primer/selector-no-utility Apr 11, 2019
CHANGELOG.md Update CHANGELOG.md May 15, 2019
CODE_OF_CONDUCT.md add code of conduct Dec 4, 2018
DEVELOP.md change primer references Apr 25, 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 Merge branch 'release-12.3.0' into update-references Apr 30, 2019
next.config.js hack the header :( Apr 3, 2019
now.json fix as issues Apr 3, 2019
package-lock.json Merge remote-tracking branch 'origin/release-12.4.0' into npm-audit May 14, 2019
package.json Merge remote-tracking branch 'origin/release-12.4.0' into npm-audit May 14, 2019
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.