Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
What if: Deeply Nested SCSS Is Good (medium.com/lakesare)
3 points by lakesare on Sept 3, 2019 | hide | past | favorite | 2 comments


In the current frontend ecosystem, I felt fairly alone with my love for structuring CSS in a deeply nested fashion. I have had numerous discussions with my coworkers about it, and now, finally, I laid out my main arguments pro-deep-nesting, in an organized way. Thank you for reading!


Makes sense. The idea that markup and CSS shouldn’t be coupled has been thrown out in recent years, and using extremely specific selectors is sort of what CSS modules and CSS in JS is all about.

I wonder how flexible it is, though - you’d need to use the direct descendant selector or it all goes haywire, but that may not always be enough.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: