3 ms·
After 20+ years of HTML, CSS I started to use Tailwind for a new project. Using web components (disabling the shadow dom unfortunately). You guessed it right.
by tchvil 5y ago
After 20+ years of HTML, CSS I started to use Tailwind for a new project.
Using web components (disabling the shadow dom unfortunately).
You guessed it right. There is no need for named selectors anymore.
And you get the advantages of standardisation.
People can share snippets of code you can reuse as is.
And when you have a problem, you are probably not the first to have it, and can quickly find a solution on youtube, stack overflow, etc.
- abledon 5y agothe code-reuse is such a boon
- wildrhythms 5y agoEmbracing components over classes is what helped me understand and appreciate functional CSS (Tachyons, Tailwind, etc). Lots of headaches removed when the DOM structure finally 1:1 reflects the style inheritance structure, without having to maintain the latter separately.