Earlier quoted context omitted.
Tailwind's just a shorthand style for writing [a particular snapshotted older version of] CSS based on the theory that saving on keystrokes is worth more than understandable naming. It then leverages this brevity to let people over-define styles directly in the HTML, which would otherwise take paragraphs of normal CSS and therefore be unwieldy to do (so you'd just alias it into a new CSS property in a separate file).…
> Tailwind's just a shorthand style for writing [a particular snapshotted older version of] CSS based on the theory that saving on keystrokes is worth more than understandable naming. Tailwind takes the "cascading" and "sheets" out of CSS. Instead of describing what types of things look like, it forces you to describe how each individual instance of everything looks. Which is a valid thing to do, but it's absolutely…
The Evolution of Scalable CSS
51–59 of 59 posts
Re: The Evolution of Scalable CSS
#52Earlier quoted context omitted.
Tailwind's just a shorthand style for writing [a particular snapshotted older version of] CSS based on the theory that saving on keystrokes is worth more than understandable naming. It then leverages this brevity to let people over-define styles directly in the HTML, which would otherwise take paragraphs of normal CSS and therefore be unwieldy to do (so you'd just alias it into a new CSS property in a separate file).…
Tailwind is neither a DSL nor is it any kind of standard. It's literally just utility classes. The "compiler" is really just tree-shaking. I feel like I'm taking crazy pills.
Re: The Evolution of Scalable CSS
#53Re: The Evolution of Scalable CSS
#54I never understood this with BEM: .nav { &__link { } } Why not this?: .nav { a { } }
To avoid CSS inheritance & specificity, the "Cascading" part of CSS is the actual root of all evil. If you think about it, all the modern approaches to CSS (BEM, Atomic CSS, OOCSS) try to avoid it all cost.
The Cascade is CSS’a superpower.
If only someone would come up with a way to write CSS to make the cascade work for you, not against you.
Oh wait; that would be Inverted Triangle CSS.
[1]: https://www.xfive.co/blog/itcss-scalable-maintainable-css-ar...
Re: The Evolution of Scalable CSS
#55There is actually a W3C working group working on a standardised design token schema specification and on adoption by design tooling. Several big names such as Adobe are actively involved, so this has some weight to it. https://github.com/design-tokens
Re: The Evolution of Scalable CSS
#56Re: The Evolution of Scalable CSS
#57Earlier quoted context omitted.
The conclusion I took from the article was that CSS simply isn’t scalable. I’ve been hearing about web components for years and nothing seems to have materialized. I’ve never built something where I thought to even use shadow DOM. Tailwind is the only solution that meets the stated aims. If tailwind doesn’t adhere to the dogma for how CSS should work in principle, well that’s a lovely problem to have.
"Nothing seems to have materialized..." --> https://nordhealth.design/ -- these are all custom components. And here is D. Darnes explaining in part how they get things done: https://web.dev/custom-properties-web-components/ CSS is scalable. You have to actually know CSS in order to accomplish it. I've been here since mid-90s, when CSS first existed. It isn't until the past four or five years that things have really b…
It can work, but it failed for massive amount of people, it doesn't make it a successful paradigm.
Re: The Evolution of Scalable CSS
#58Earlier quoted context omitted.
To avoid CSS inheritance & specificity, the "Cascading" part of CSS is the actual root of all evil. If you think about it, all the modern approaches to CSS (BEM, Atomic CSS, OOCSS) try to avoid it all cost.
To avoid CSS inheritance & specificity, the "Cascading" part of CSS is the actual root of all evil. The Cascade is CSS’a superpower. If only someone would come up with a way to write CSS to make the cascade work for you, not against you. Oh wait; that would be Inverted Triangle CSS. [1]: https://www.xfive.co/blog/itcss-scalable-maintainable-css-ar...