arthurvondyck / specificity-graph

Generate interactive Specificity Graphs for your CSS

Home Page:http://jonassebastianohlsson.com/specificity-graph/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Generate interactive Specificity Graphs for your CSS

http://jonassebastianohlsson.com/specificity-graph/

License:MIT License


Languages

Language:JavaScript 100.0%