Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A customizable builder template for KSS-node that turns CSS/SCSS comments into living styleguides with colors, wrappers, RequireJS, and body class support.
KSS-Scheibo is a builder template for KSS-node that turns CSS/SCSS documentation comments into a living styleguide with custom sections for colors, wrappers, RequireJS, body classes, and HTML language attributes.
KSS-Scheibo is a Node.js package and builder template that plugs into kss-node, the styleguide generator for CSS and SCSS. It accepts KSS-style documentation comments in your stylesheets plus an optional kss-scheibo.json configuration file, and generates a static HTML living styleguide. The package is published on npm as kss-scheibo and developed by scheibome, with source on GitHub.
--builder at node_modules/kss-scheibo/kss_styleguide/scheibo-template/.Colors custom option to display SCSS color variables as swatches in the styleguide.Wrapper custom option lets you wrap component markup with custom HTML, e.g., a grey background, via the <wrapper-content/> placeholder.<insert-markup>2.1-0</insert-markup>, with the digit after the dash selecting which example to embed.htmllang, htmlclass, and bodyclass options in the config; per-section classes are also supported.themeColor and themeTextColor.build and watch from kss-scheibo to generate the styleguide programmatically and rebuild on file changes.build/watch API to automate styleguide generation in CI.$color-primary: #FF6400 in KSS comments and the Colors section renders them as a named palette.<insert-markup>, useful for forms that reuse inputs.Install the package with npm install kss-scheibo --save-dev. Then create a kss-homepage.md and document your styles with KSS-style comments. Configure kss-scheibo.json at the package root to set the builder path, source, destination, and custom sections, and run the KSS CLI node node_modules/kss/bin/kss --config yourconfigname.json, or use the exported build and watch functions from kss-scheibo in a Node script.
KSS-Scheibo is an open-source npm package, so there is no license fee. It is an MIT-licensed project (per the npm license badge), hosted on GitHub.
No. KSS-Scheibo is a builder template for kss-node, so you must have kss-node installed to generate the styleguide. It uses the KSS CLI or the kss-node programmatic API.
The package supports Colors, Wrapper, RequireJS, HTMLclass, BodyClass, and HtmlLang as custom sections. Each is enabled by listing it in the custom array of the configuration file, and each has its own syntax for defining content in the KSS comments.
Use the <insert-markup> tag with a reference like 2.1-0 in your KSS markup example. The number before the dash is the KSS reference, and the number after the dash is an index (starting at 0) selecting which example variant to insert.
Yes. Set the htmllang option in the configuration to a BCP 47 language tag, for example "de", and enable the HtmlLang custom section.
