My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Does CSS @apply rule solve any real problems?

Grey Davis's photo
Grey Davis
·Apr 24, 2016

CSS @apply rule(If you don't know about it) basically lets you define native CSS mixins that are similar to SASS or LESS mixins with one key difference being that you cannot pass variables to these native mixins.

Without the support for passing variables as arguments, I don't see a possible use case where a native CSS mixin would be helpful.

Does CSS @apply rule solve any real problems? or are we just making CSS harder and harder with complex/unnecessary features??