/specificity-graph

Generate interactive Specificity Graphs for your CSS

Primary LanguageJavaScriptMIT LicenseMIT

Specificity Graph (for CSS)

NPM version

Idea by Harry Roberts

The generated graph Generate an interactive line graph showing the specificity in your stylesheet. Uses d3, css-parser, and specificity.

Online Specificity Graph generator

Installation

npm install specificity-graph

To get the example index.html up and running:

  1. Clone repo
  2. npm install
  3. npm run example

Usage

First require ./lib/core.

specificityGraph.create(css, options)

specificityGraph.update(css)

Changelog

0.0.1 Npm package
0.0.0 Initial version