This is a KSS builder - a custom build and template - for KSS Style guides.
DISCLAIMER: This only really works with the Bluegg Generator and as such should not be used by anyone, for anything, at any time
npm i bluegg-kss-builder
Amend the color/font variables in /resources/styles/scss/_styleguide.scss
.
Then just run the grunt styleguide
task from the root directory of your project. Refer to the
KSS Node documentation or the Grunt KSS Docs for more info.
I've borrowed stolen some tasks from other projects and hacked them for
other purposes.
You can create a grid of brand colours using the Colors
comment. This will
also output HSL and RGB codes for each hex code:
Pantones aren't supported yet
// Brand colours
//
// Brand colour pallette
//
// Colors:
// $color-brand: #128dfb - The brand blue
// $color-pink: #fa1848 - A highlight colour
// $color-gold: #fbb800 - Always believe in your soul
//
// Style guide: Colours.Brand\ Colours
You can now get a grid of logos (or any images that need a preview and to be
downloadable) by using the Logo
comment. This will also create links to
download an SVG, PNG and JPEG file of the same name from the same place as the
file path referenced in the comment (so make sure you add the files).
The logo will need to be in the public folder - e.g. reachable from the styleguide front end
// Logo
//
// Logo description goes here
//
// Logos: Main logo: /path/to/logo.svg - This is the main logo. This should be used in most instances
// White logo: /path/to/logo-white.svg - This is the main logo in white
//
// Style guide: Logo
You can create a sample block by using the Sample
comment. This is useful for
Logo Dos and Don'ts or to demo type faces, fonts, applications etc.
// Fonts
//
// Our brand fonts. These are available from [Typekit](https://typekit.com/fonts/aktiv-grotesk/)
//
// Samples: Aktiv Grotesk (regular): //placehold.it/800x600 - Use this for body copy
// Aktiv Grotesk (medium): //placehold.it/800x600 - Use this for most headings
// Aktiv Grotesk (bold): //placehold.it/800x600 - Use this for emphasis and buttons
//
// Style guide: Typography.Fonts