Created
April 18, 2017 18:38
-
-
Save jongacnik/89ce49427bc1343c12b2a66abc764a79 to your computer and use it in GitHub Desktop.
design.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // can pipe stdout into autoprefixer, minifier, etc etc etc | |
| node design.js > dist/bundle.css |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var gr8 = require('gr8') | |
| var recsst = require('recsst') | |
| var gr8css = gr8() | |
| // custom gr8 | |
| gr8css.add({ | |
| prop: 'font-family', | |
| vals: { | |
| sans: 'Arial', | |
| serif: 'Times' | |
| }, | |
| hyphenate: true | |
| }) | |
| // custom css | |
| var custom = `` | |
| var built = | |
| recsst.toString() + | |
| gr8css.toString() + | |
| custom | |
| process.stdout.write(built) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment