Idea by Harry Roberts
Generate an interactive line graph showing the specificity in your stylesheet. Uses d3, css-parser, and specificity.
Online Specificity Graph generator
npm install specificity-graph
To get the example index.html
up and running:
- Clone repo
npm install
npm run example
If you’re not using npm, you can simply download specificity-graph-standalone.js
.
var specificityGraph = require('specificity-graph')
,
or if using standalone:
<script src='specificity-graph-standalone.js'></script>
specificityGraph.create(css, options)
specificityGraph.update(css)
0.0.2 Prev/Next focus functions
0.0.1 Npm package
0.0.0 Initial version