🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

styleguide

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styleguide

Generate a KSS based styleguide

latest
npmnpm
Version
0.1.7
Version published
Maintainers
2
Created
Source

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)

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

FAQs

Package last updated on 25 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts