mirror of
https://github.com/primer/css.git
synced 2024-11-26 23:56:04 +03:00
The CSS design system that powers GitHub
cssdesign-systemdesign-systemsframeworkmetaprimerprimer-csssassstarred-primer-repostarred-repostyleguideui-components
5cfae2c219
* Add styles for the ToggleSwitch component * Add changeset * Disable stylelint temporarily; commit stylelint fixes * Refactor CSS; add stories * Clean up; rename ToggleSwitch-switch to ToggleSwitch-track * Address a bunch of PR feedback: * Rename ToggleSwitch-bg -> ToggleSwitch-icons * Rename ToggleSwitch-label -> ToggleSwitch-status * Collapse border-* styles into a single border-style property * Replace CSS with touch target @include * Remove unnecessary :after pseudo-element * Remove sr-only span, as it's redundant * Collapse border-* properties again (stylelint didn't like argument order last time) Co-authored-by: Mike Perrotti <mperrotti@github.com> |
||
---|---|---|
__tests__ | ||
.changeset | ||
.github | ||
.vscode | ||
docs | ||
script | ||
src | ||
.eslintrc.json | ||
.gitignore | ||
.npmignore | ||
.npmrc | ||
.vercelignore | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
deprecations.js | ||
DEVELOP.md | ||
LICENSE | ||
package.json | ||
postcss.config.cjs | ||
prettier.config.cjs | ||
README.md | ||
RELEASING.md | ||
stylelint.config.cjs | ||
yarn.lock |
Primer CSS
The CSS implementation of GitHub's Primer Design System
Documentation
Our documentation site lives at primer.style/css. You'll be able to find detailed documentation on getting started, all of the components, our theme, our principles, and more.
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.