styleguide

0.1.7 • Public • Published

styleguide

Dynamically build KSS-based styleguides

Installation

$ npm install styleguide

Help

$ ./bin/styleguide --help

Run

$ ./bin/styleguide -c [location of CSS files] -h [location of HTML partials] -d [location of data files] -o [output location]

Use it with Grunt

grunt-sg

File Name Conventions

Running the styleguide will look for KSS comments in your SCSS (CSS) partials. It will then look for matching HTML (Handlebars) and data (YML) files.

For example: css/ _header.scss (contains KSS style block)

partials/
  _header.hbs   (contains markup)

data/
  _header.yml   (contains data for the Handlebars template)

Legal Stuff

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.7
    103
    • latest

Version History

Package Sidebar

Install

npm i styleguide

Weekly Downloads

110

Version

0.1.7

License

none

Last publish

Collaborators

  • robtarr
  • asimpson