Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.56 KB

overview.md

File metadata and controls

53 lines (41 loc) · 1.56 KB

Example styleguide

About

This styleguide is generated using SC5 styleguide generator. Styleguide generator aims to decrease time spent on developing living styleguides and support styleguide driven development workflows.

KSS

KSS (Knyle Style Sheets) is a documentation syntax for stylesheets (CSS/LESS/SASS..). Used by the likes of GitHub

Styleguide generator is largely based on KSS and kss-node projects.

// Elements
//
// This section contains example documentation of different kinds of html
// elements
//
// Styleguide 3.0

// Buttons
//
// This section demonstrates the use of modifiers
//
// default - This is the default state of a button element
// .green - This is a button with a class modifier
// .red - This is another button with a class modifier
// :hover - This is a button with the hover pseudo modifier
//
// Markup:
// <button class="button {$modifiers}">Click me!</button>
//
// Styleguide 3.1

Improvements over kss-node

  • Fancy looking default template based on Angular.js
  • Search functionality
  • Support for SASS variables
  • GitHub flavored Markdown for Overview
  • In browser variable editing (experimental)
  • Helper classes (for displaying colors etc.)
  • A server for hosting the styleguide and saving edited variables

More info about Styleguide Generator

https://bitbucket.org/SC5/styleguide and #styleguide @ SC5 Slack

Overview page

You can create an Overview page for your styleguide using Markdown, check docs for more info.