Skip to content

Instantly share code, notes, and snippets.

@jongacnik
Created April 18, 2017 18:38
Show Gist options
  • Select an option

  • Save jongacnik/89ce49427bc1343c12b2a66abc764a79 to your computer and use it in GitHub Desktop.

Select an option

Save jongacnik/89ce49427bc1343c12b2a66abc764a79 to your computer and use it in GitHub Desktop.
design.js
// can pipe stdout into autoprefixer, minifier, etc etc etc
node design.js > dist/bundle.css
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