JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 40
  • Score
    100M100P100Q71764F
  • License CC0-1.0

GitHub flavored theme for mdcss

Package Exports

  • mdcss-theme-github

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mdcss-theme-github) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mdcss GitHub

NPM Version Build Status

mdcss GitHub is a theme for mdcss based on the documentation styles seen across GitHub.

Usage

Add mdcss and mdcss GitHub to your build tool:

npm install mdcss --save-dev
npm install mdcss-theme-github --save-dev

Whenever mdcss is used, reference this theme.

require('mdcss')({
    theme: require('mdcss-theme-github')({ /* options */ })
})

Options

Options control the look and feel of the mdcss GitHub theme as well as any iframe examples that may be used.

title

Type: String
Default: 'Style Guide'

The page title to be used by the style guide.

Type: String
Default: 'mdcss-logo.png'

The page logo to be used by the style guide.

examples.base

Type: String
Default: null

The base URL to use for all relative URLs contained within an example, including CSS and JavaScript references.

examples.target

Type: String
Default: '_self'

The frame to open example hyperlinks from within an example.

examples.css

Type: Array
Default: ['style.css']

A list of CSS files to be used by examples.

examples.js

Type: Array
Default: null

A list of JavaScript files to be used by examples.

examples.bodyjs

Type: Array
Default: null

A list of JavaScript files to be used by examples, inserted after the example.

examples.htmlcss

Type: String
Default: 'background:none;border:0;clip:auto;display:block;height:auto;margin:0;padding:0;position:static;width:auto'

A string of styles applied to the <html> wrapping the example. These default styles are used to create a seamless effect with the styleguide.

examples.bodycss

Type: String
Default: 'background:none;border:0;clip:auto;display:block;height:auto;margin:0;padding:16px;position:static;width:auto'

A string of styles applied to the <body> wrapping the example. These default styles are used to create a seamless effect with the styleguide.