← Graph

CSS-in-JS

concept 3 connections

Frontend pattern of defining styles inside JavaScript modules. Historically described as an anti-pattern, but by 2018 almost all modern libraries adopt it. Panel arguments in favor: when a component or leaf is removed, there is no longer a need to search the whole CSS codebase for references to orphaned class names; maintainability improves with component-based architecture; and bundle size can shrink because unused styles can be tree-shaken alongside unused components.

category
pattern
about
CSS-in-JS concept
Panel highlights CSS-in-JS as a pattern that has gained traction.
about
CSS-in-JS concept
CSS-in-JS is one of the cited lasting trends.
about
CSS-in-JS concept
Recommends adopting the CSS-in-JS pattern.

Provenance

Created in
JavaScript/Frontend Panel at wroclove.rb 2018 2026-04-17 16:18
Read by
15 extractions