Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 548 Bytes

styleguide.md

File metadata and controls

33 lines (26 loc) · 548 Bytes

Styleguide

Here's how to use the styleguide feature of Carpenter.

Config

Here's how to configure carpenter to parse and display your styleguide:

module.exports = {
	// ...
	styleguide: {
		files: [
			'dist/css/styleguide.css'
		]
	}
}

Write some styleguide docblocks

In your styleguide.css file, you need to document your styleguide like so:

/**
 * @name 		My Cool Component
 * @styleguide 	Components / My Cool Component
 * @example 	html
 * <div class="my-cool-component">
 * 	Hello world
 * </div>
 */