1
1
mirror of https://github.com/primer/css.git synced 2024-12-14 23:12:03 +03:00
css/modules/primer-support
2017-10-10 20:50:05 -07:00
..
docs add support docs for breakpoints, color-system, spacing, and typography 2017-08-09 16:47:28 -04:00
lib Make selected state work on opening <details> 2017-09-13 17:59:04 +09:00
.npmignore rename packages directory to modules 2017-06-29 12:49:16 -07:00
index.scss rename packages directory to modules 2017-06-29 12:49:16 -07:00
LICENSE Revert "Merge branch 'dev' into master" 2017-09-20 21:21:19 -07:00
package.json Merge branch 'master' into release-9.6.0 2017-10-10 20:50:05 -07:00
README.md add docs to primer-support readme 2017-08-09 16:49:54 -04:00

Primer CSS Support

npm version Build Status

Support files are Sass variables, mixins, and functions that we import into different bases for use across components, objects, and utilities. Sharing these common properties across GitHub sites helps us to keep our styles more consistent.

Most of the time to include these you'll only need to add @import "support/support"; to the top of your bundle. If you want only a specific partial you can import them separately.

This repository is a module of the full primer-css repository.

Install

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

$ npm install --save primer-support

Usage

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-support/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.

Documentation

Primer is built on systems that form the foundation of our styles, and inform the way we write and organize our CSS. Building upon systems helps us make styles consistent and interoperable with each other, and assists us with visual hierarchy and vertical rhythm.

We use Sass variables to keep color, typography, spacing, and other foundations of our system consistent. Occasionally we use Sass mixins to apply multiple CSS properties, they are a convenient solution for frequently-used verbose patterns.

We've documented variables, mixins, and the systems they are built on for the following:

License

MIT © GitHub