Skip to content

Commit 07cc6cc

Browse files
authored
Merge pull request #6 from joeyquarters/npm-install-hooks
Create SCSS & LESS files with npm install hook
2 parents c066eee + 50a262d commit 07cc6cc

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ p {
2020
}
2121
```
2222

23+
## Quick Start
24+
25+
### Install
26+
27+
This package can be installed with:
28+
29+
* [npm](https://www.npmjs.com/package/system-font-css): `npm install --save system-font-css`
30+
31+
### Load
32+
33+
When installed with npm, system-font.css will create both a SCSS and LESS partial for easy importing:
34+
35+
```scss
36+
@import 'system-font';
37+
```
38+
2339
## OSX
2440

2541
**OSX** has used three system typefaces. Since **El Capitan** it has used **San Fransisco**. In **Yosemite** it used **Helvetica Neue**. From **Mavericks** back to **Kodiak** it used **Lucida Grande**.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@
2222
"dependencies": {},
2323
"devDependencies": {},
2424
"main": "system-font.css",
25-
"scripts": {}
25+
"scripts": {
26+
"install": "cp system-font.css _system-font.scss ; cp system-font.css system-font.less"
27+
}
2628
}

0 commit comments

Comments
 (0)