itsabgr / stylattr

style elements by their attributes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stylattr

GitHub CDN

style elements by their attributes

It's a utility for web designers to quickly style any HTML element by their attributes begin with a “-”

CHECK IT WORKS

<html>
    <head>
        <!-- include below script at top of your header --> 
        <script type="application/javascript" src="https://cdn.jsdelivr.net/gh/itsabgr/stylattr@v1/stylattr.js"></script> 
    </head>
    <body style="background: white; color: white">
        <!-- -property="value" -->
        <h3 -color="black" >
            It Works! <br> Just include in top of your HTML and style any element like this one
        </h3>
    </body>
</html>

TODO

  • A tool to extract static stylesheet rules from style attributes
  • Impl auto autocompletion feature for IDEs

need contributions!️

About

style elements by their attributes

License:MIT License


Languages

Language:JavaScript 100.0%