Tech
Why Every Large Stylesheet Eventually Becomes Unpredictable
Also available in Español
The Problem
Every team inherits a stylesheet like this eventually.
Not badly written. Nobody on the original team was careless. Selectors are reasonable. Naming is consistent enough. And still, nobody touches it without dread, because nobody's sure which of its four thousand lines are load-bearing.
So the instinct is always the same. Add a new rule. Don't remove the old one — just in case. A new component gets its own selector rather than reusin...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to