You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have existing project (mini-library) that uses JSS and MUI, and I would like to wrap all my CSS rules in @layer layername {} container for easier integration with other styles. I know that it probably will take some time until it will be supported at library level, so the fastest and easiest way is to write a plugin as far as I understand. Can someone point me in right direction? So far I checked some official plugins source code, like "nested" plugin, but it looks like re-parenting every rule is a bit of an overkill. Any ides?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I have existing project (mini-library) that uses JSS and MUI, and I would like to wrap all my CSS rules in
@layer layername {}
container for easier integration with other styles. I know that it probably will take some time until it will be supported at library level, so the fastest and easiest way is to write a plugin as far as I understand. Can someone point me in right direction? So far I checked some official plugins source code, like "nested" plugin, but it looks like re-parenting every rule is a bit of an overkill. Any ides?Beta Was this translation helpful? Give feedback.
All reactions