Y
Hacker News
new
|
ask
|
show
|
jobs
by
drderidder
3287 days ago
One word: re-usability.
2 comments
throwasehasdwi
3287 days ago
the components should be reusable, not the styles on them.
Besides global font settings CSS nowadays is mostly used for positioning and isn't reusable.
link
drderidder
3281 days ago
For components, bundling the CSS makes sense. For other use cases external CSS resources with inheritance are very beneficial.See for example Scalable and Modular Architecture for CSS or any modern CSS framework for lots of examples.
link
joncampbelldev
3287 days ago
reusing css is a great idea for websites, react and Vue are most commonly used for web app where the atomic unit of reusability is the component.
link
Besides global font settings CSS nowadays is mostly used for positioning and isn't reusable.