-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
The @apply
rule isn't currently supported by any browser but in my opinion it is a very useful feature in order to keep styles reusable by sharing global custom sets down to scoped styles.
To overcome the lack of support of custom sets, I tried to use cascading mechanism between components but I encountered several troubles to avoid unwanted style overrides with root level shared classes.
At the end I found a way to process styles with PostCSS/nextcss but when I try to use the @apply
rule in a component I get the following error: Cannot read property 'toLowerCase' of undefined.
I was wondering if it is a known limitation of the parser and if there is a way to fix it.
Metadata
Metadata
Assignees
Labels
No labels