UI Components์ถœ์ฒ˜: Smashing Magazine์กฐํšŒ์ˆ˜ 19

CSS <code>@scope</code>: An Alternative To Naming Conventions And Heavy Abstractions

By hello@smashingmagazine.com (Blake Lundquist)
2026๋…„ 2์›” 5์ผ
**CSS @scope: An Alternative To Naming Conventions And Heavy Abstractions**

When learning the principles of basic CSS, one is taught to write modular, reusable, and descriptive styles to ensure maintainability. But when developers become involved with real-world applications, it often feels impossible to add UI features without styles leaking into unintended areas. This issue often snowballs into a self-fulfilling loop; styles that are theoretically scoped to one element or class start showing up where they donโ€™t belong. This forces the developer to create even more specific selectors to override the leaked styles, which then accidentally override global styles, and so on. Rigid class name conventions, such as BEM, are one theoretical solution to this issue...

---

**[devsupporter ํ•ด์„ค]**

์ด ๊ธฐ์‚ฌ๋Š” Smashing Magazine์—์„œ ์ œ๊ณตํ•˜๋Š” ์ตœ์‹  ๊ฐœ๋ฐœ ๋™ํ–ฅ์ž…๋‹ˆ๋‹ค. ๊ด€๋ จ ๋„๊ตฌ๋‚˜ ๊ธฐ์ˆ ์— ๋Œ€ํ•ด ๋” ์•Œ์•„๋ณด์‹œ๋ ค๋ฉด ์›๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.