Facebook is using styled components with utility atomic classes. The approach avoids all, oh my gosh, I'm gonna have to say it, it avoids all spec of specificity issues. There are never any nested classes that apply to different things. You simply just have a class that applies color red, text line left, grid row three and it's applied directly to the class.
In this episode of Syntax, Wes and Scott talk about why Threads, Instagram, and all things Facebook have what seems like really messy HTML and CSS?
Show Notes
Shameless Plugs
Tweet us your tasty treats