Back to Daily Feed 
New CSS Class Prefix Selector `.prefix-*` Resolved
Must Read
Originally published on CSS-Tricks
View Original Article
Share this article:

Summary & Key Takeaways
- A new CSS proposal for a class prefix selector has reached "resolved" status.
- This selector will enable targeting classes using a wildcard, e.g.,
.prefix-*. - It offers a more flexible way to style component variations.
- The feature is expected to benefit utility-first CSS methodologies.
- This addition enhances the expressiveness and power of CSS.
Our Commentary
Oh, this is huge! We've been wanting something like this for ages. The ability to target .prefix-* directly in CSS is going to clean up so much of our component styling. I can already imagine the refactors. It feels like a long-overdue quality-of-life improvement for CSS authors.
View Original Article
Share this article: