Socket
Socket
Sign inDemoInstall

primer-support

Package Overview
Dependencies
Maintainers
1
Versions
843
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

primer-support - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

.npmignore

24

package.json
{
"name": "primer-support",
"version": "0.2.0",
"description": "GitHub Primer - Support",
"homepage": "https://github.com/styleguide",
"version": "0.3.0",
"main": "support.scss",
"description": "Sass variables, mixins, and functions for use in our components.",
"author": "GitHub, Inc.",
"license": "MIT",
"homepage": "http://primercss.io/",
"repository": "https://github.com/primer/support.git",
"main": "support.scss",
"bugs": {
"url": "https://github.com/primer/support/issues"
},
"author": "GitHub, Inc.",
"scripts": {
"test": "scss-lint *.scss"
},
"keywords": [

@@ -20,4 +17,11 @@ "primer",

"github",
"primercss"
]
"primercss",
"mixins",
"functions",
"variables",
"scss"
],
"scripts": {
"test": "scss-lint *.scss"
}
}

@@ -1,27 +0,46 @@

## Primer - Support
# Primer CSS Support
[![NPM version](http://img.shields.io/npm/v/primer-support.svg)](https://www.npmjs.org/package/primer-support)
[![Build Status](https://travis-ci.org/primer/support.svg?branch=master)](https://travis-ci.org/primer/support)
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.
> 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.
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][primer] repository.
## Documentation
You can read more about support in the [docs][docs].
## Install
Install via `npm install --save primer-support`
This repository is distributed with [npm][npm]. After [installing npm][install-npm], you can install `primer-support` with this command.
```
$ npm install --save primer-support
```
## Usage
Once you have the package installed, you can include in your bundle with something like this
The source files included are written in [Sass][sass] (`scss`) You can simply point your sass `include-path` at your `node_modules` directory and import it like this.
```scss
@import "node_modules/primer-support/support";
@import "primer-support/index.scss";
```
For more info on the available support, visit our [Design systems docs](https://github.com/styleguide/css)
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._
## Build
For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css`
```
$ npm run build
```
## Related
* [GitHub Design Systems](https://github.com/styleguide)
* [Primer](https://github.com/primer)
* [Primer Documentation][docs]
* [primer-css][primer]

@@ -31,1 +50,7 @@ ## License

MIT © [GitHub](https://github.com/)
[primer]: https://github.com/primer/primer
[docs]: http://primercss.io/
[npm]: https://www.npmjs.com/
[install-npm]: https://docs.npmjs.com/getting-started/installing-node
[sass]: http://sass-lang.com/
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc