Skip to content

A tool to generate boilerplate stylesheets for HTML components.

License

Notifications You must be signed in to change notification settings

WoollyMittens/dom-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Maurice van Creij
Jan 8, 2025
f39f7e0 · Jan 8, 2025

History

10 Commits
Jan 8, 2025
Oct 26, 2023
Dec 24, 2023
Oct 26, 2023
May 15, 2024
Jan 8, 2025
Jan 8, 2025

Repository files navigation

DOM Indexer

A tool to generate boilerplate stylesheets for HTML components.

Example

https://woollymittens.github.io/dom-indexer/

Instructions

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.

License

© Maurice van Creij. Licensed under The MIT License.

About

A tool to generate boilerplate stylesheets for HTML components.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published