--- title: Style Sherpa description: Bundled with the ZURB Template, Style Sherpa makes it easy to create a style guide for your codebase, with just two files. library: github: https://github.com/zurb/style-sherpa docs: https://github.com/zurb/style-sherpa video: 'paIqrjCm9_k' --- Style guides are a critical component of a CSS codebase, especially one used by many people. It's important that everyone on a team knows how to build a component. Style guides are that documentation. The docs you're reading right now are a style guide of sorts, for the core Foundation styles. [Style Sherpa](https://github.com/zurb/style-sherpa) is a small tool bundled with the [ZURB Template](starter-projects.html#zurb-template) that can generate a basic style guide for you quickly. The style guide is created from a single Markdown file, which contains all of the page content, and an HTML template, which defines the structure around the content. --- ## Usage
The ZURB Template includes the folder `src/styleguide/`, which contains both of the files you need to build your style guide. Like everything else in the ZURB Template, just edit the files and your changes will instantly be compiled One is a Markdown file, `index.md`. This file contains the contents of your style guide. The other is a Handlebars template, `template.html`. The contents of your style guide are inserted into this template as HTML. The final file is included in the `dist/` folder of your project as `styleguide.html`. --- ## Writing Content The style guide is divided into sections. Generally, each component in your codebase—think buttons, panels, modals, form controls, and so on—will have its own section. Sections are titled with a Markdown heading, which is a single hash mark: ```markdown # Buttons Lorem ipsum dolor sit amet, **consectetur adipisicing** elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ``` To create a new section, add four line breaks and a new heading: ```markdown # Buttons Lorem ipsum dolor sit amet, **consectetur adipisicing** elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. # Forms Lorem ipsum dolor sit amet, `