dovetail
dovetail copied to clipboard
Statically analyze what CSS classes are used, and lint or extract
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