A tool to generate boilerplate stylesheets for HTML components.
https://woollymittens.github.io/dom-indexer/
var outputCss = new DomIndex({
rootElement: document.querySelector(YOUR_ROOT_SELECTOR),
allowedAttributes: /type|data-/
}).convert();
rootElement: {DOM element} - The CSS selector of a container on the page.
allowedAttributes: {Regexp} - Which attributes to also use as selectors.
© Maurice van Creij. Licensed under The MIT License.