3 ms·
I find that Tailwind makes it a lot easier to use semantic HTML because it discourages element styling and provides an aggressive browser style reset. H2 or H3
by moritzwarhier 4y ago
I find that Tailwind makes it a lot easier to use semantic HTML because it discourages element styling and provides an aggressive browser style reset.
H2 or H3? A purely semantic distinction with Tailwind.
Use an OL for a custom list of items? You start with a clean slate, no overrides required.
And you are discouraged from writing custom CSS that causes unexpected styling as well.
Every HTML tag with an empty class attribute is a clean slate.
You only have to care about the default display mode and about allowed descendants.