Skip to content

Collection of visual styleguide utililities, compatible with KSS generated styleguide object.

Notifications You must be signed in to change notification settings

jkarttunen/styleguide-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Styleguide-utils

I needed some util functions for manipulating styleguide object created by SC5 styleguide generator. This propably is compatible with KSS generated json files too.

All functions are functional. See tests for examples

.getDepth()

sgUtils.getDepth('1.2')
// --> 1

.sgNavigation()

Takes in styleguide object (generated by SC5 styleguide generator or possibly KSS) and strips it to navigation parts only. This can be useful for dynamically generating styleguide navigation. Return Sections as a flat array.

.sgNavigationTree()

Same as above, but arranges sections into tree.

About

Collection of visual styleguide utililities, compatible with KSS generated styleguide object.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published