Created
October 18, 2022 01:45
-
-
Save exegeteio/1b83e9bacf81e7f054a0cba2ec5823e8 to your computer and use it in GitHub Desktop.
Show all classes in Tailwind.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let els = document.querySelectorAll("body *[class]"); els.forEach((el) => { let el2 = document.createElement("span"); el2.innerText = el.classList.toString(); el2.style = "color: red;"; el.parentNode.prepend(el2); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment