I made a purely css library with techniques similar to this in case anyone is interested, <a href="http:&#x2F;&#x2F;picnicss.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;picnicss.com&#x2F;</a> . The main shortcomming is the already mentioned uglyness of some html, but I haven&#x27;t found js compatibility an issue.<p>For example, to toggle a button is really similar to set a rule like $(&quot;button.cta&quot;).on(&quot;click&quot;, fn); vs $(&quot;input.cta&quot;).on(&quot;change&quot;, fn);