An mdcss theme for jigSass. Based on Jonathan Neal's `mdcss-theme-github`
npm install mdcss-theme-jigsass[![NPM Version][npm-img]][npm] [![Build Status][ci-img]][ci]
[jigSass mdcss] is a theme for [mdcss] based on Jonathan Neal's own
mdcss GitHub theme.
Add [mdcss] and [jigSass mdcss] to your build tool:
``bash`
npm install mdcss --save-dev
npm install mdcss-theme-jigsass --save-dev
Whenever [mdcss] is used, reference this theme.
`js`
require('mdcss')({
theme: require('mdcss-theme-jigsass')({ / options / })
})
#### Example
The example keyword is used to render living examples of code in iframes.
`example`
Specifying a language like example:html generates an example that is then followed by the original code block.
`example:html`
Arguments that follow ,name:value may be used to customize the example iframes. For instance, the width or height of an example might be specified so that its contents adhere to a particular breakpoint.
` The desktop view.example,width=1024px`
` The tablet view.example,width=768px`
` The mobile view.example,width=320px`
#### Color
The color keyword is used to generate a visual palette of colors. Arguments that follow @name: value may be used to provide any additional details about a color.
`example:color`
@color: #ffffff @name: White
@color: #f8f8f8 @name: White Smoke
@color: #e7e7e7 @name: Whisper
@color: #777777 @name: Grey
@color: #565454 @name: Matterhorn
@color: #4078c0 @name: Steel Blue
@color: #333333 @name: Night Rider
#### Order
The order heading detail is used to control the order of sections in the generated style guide. A negative order value will shift the item before non-ordered items, while a positive order value will push the item after non-ordered values.
`css`
/*---
section: First Section
order: -1
---
Attached to a subsection, the order detail will control the position of the subsection inside the section.
`css`
/*---
title: Last Subsection
section: Third Section
order: 1
---
Options control the look and feel of the JigSass mdcss theme, as well as any iframe examples that may be used.
#### title
Type: String 'Style Guide'
Default:
The page title to be used by the style guide.
#### logo
Type: String 'jigsass-logo.png'
Default:

The page logo to be used by the style guide.
#### css
Type: Array ['style.css']
Default:
A list of CSS files to be used by the theme.
#### js
Type: Array []
Default:
A list of JavaScript files to be used by the theme.
#### examples.base
Type: String null
Default:
The base URL to use for all relative URLs contained within an example,
including CSS and JavaScript references.
#### examples.target
Type: String '_self'
Default:
The frame to open example hyperlinks from within an example.
#### examples.css
Type: Array ['style.css']
Default:
A list of CSS files to be used by examples.
#### examples.js
Type: Array null
Default:
A list of JavaScript files to be used by examples.
#### examples.bodyjs
Type: Array null
Default:
A list of JavaScript files to be used by examples, inserted after the example.
#### examples.htmlcss
Type: String 'background:none;border:0;clip:auto;display:block;height:auto;margin:0;padding:0;position:static;width:auto'
Default:
A string of styles applied to the wrapping the example. These default styles are used to create a seamless effect with the styleguide.
#### examples.bodycss
Type: String 'background:none;border:0;clip:auto;display:block;height:auto;margin:0;padding:16px;position:static;width:auto'
Default:
A string of styles applied to the
` wrapping the example. These default styles are used to create a seamless effect with the styleguide.[ci]: https://travis-ci.org/TxHawks/mdcss-theme-jigsass
[ci-img]: https://img.shields.io/travis/TxHawks/mdcss-theme-jigsass.svg
[npm]: https://www.npmjs.com/package/mdcss-theme-jigsass
[npm-img]: https://img.shields.io/npm/v/mdcss-theme-jigsass.svg
[mdcss]: https://github.com/jonathantneal/mdcss
[jigSass mdcss]: https://github.com/TxHawks/mdcss-theme-jigsass
[mdcss GitHub]: https://github.com/jonathantneal/mdcss-theme-github