Daniel Nagy
Posted on March 11, 2024
https://danielnagy.me/posts/Post_jt4adn0o5bnr
TL;DR
In this article, I discuss what I call the "two-tree problem" with styling modern web apps. The problem arises from the separation of structure and style.
I suggest that while CSS is a well-designed language for styling, the cascade and separation of styles from HTML may have been mistakes.
I then examine some popular styling libraries, including Emotion, Styled Components, Tailwind, and UI Box, assessing their effectiveness in addressing the two-tree problem.
I make a case for inline styles as a potential solution, emphasizing their simplicity. I acknowledge the limits of inline styles but suggest that these limits might not be significant issues for modern web development.
Posted on March 11, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.