dovetail icon indicating copy to clipboard operation
dovetail copied to clipboard

Statically analyze what CSS classes are used, and lint or extract

Open RoyalIcing opened this issue 5 years ago • 0 comments

CSS frameworks like Tailwind are incredibly easy and fast to use. However, it adds an overhead if all the CSS classes are predefined upfront.

If we could statically analyze our Go calls to say Tailwind("mx-auto") (or similar), then we could extract exactly what classes are needed at runtime.

Other benefits:

  • Lint typos and undefined classes
  • Generate CSS on-the-fly, say for complex classes like md:hover:bg-red

RoyalIcing avatar Apr 21 '20 02:04 RoyalIcing