[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1783632832754.jpg (144.04 KB, 1024x1024, img_1783632794516_7c2szyqk.jpg)ImgOps Exif Google Yandex

b4c82 No.1859

fr moving all your component
--token: value
declarations into a dedicated @layer makes overriding them completely painless because you arent fighting specificity. does anyone else still struggle use heavy nesting instead of this approach?

article: https://master.dev/blog/thinking-horizontally-in-css-layer/

b4c82 No.1860

File: 1783633564115.jpg (108.5 KB, 1024x1024, img_1783633523404_hm31f75a.jpg)ImgOps Exif Google Yandex

the only downside i've hit is when a third-party library drops its own @layer and suddenly your overrides are being buried.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">