Skip to content

yutakahoulette-zz/commons.css

Repository files navigation

css utilility classes + normalize.css + core UI components

docs: http://yutakahoulette.com/commons.css/

to use: npm install --save --save-dev commons.css

i recommond using postcss and postcss-import for managing/building css:

example:

package.json

{
  "scripts": {
    "build-css": "postcss -c postcss-config.js",
    "watch-css": "postcss -c postcss-config.js -w"
   },
  "devDependencies": {
    "postcss": "5.2.4",
    "postcss-cli": "2.6.0",
    "postcss-import": "8.1.2",
    "commons.css": "0.0.1"
  }
  etc...
}

postcss-config.js

module.exports = {
  use: ['postcss-import']
, 'local-plugins' : true
, input: 'index.css'
, output: 'build.css'
}

index.css

@import 'commons.css';

body {
  font-family: 'Comic Sans';
  etc...
}
npm run watch-css

About

utils + core UI components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages