Usage of Theme-UI in a widget based project. #1533
-
Hello. Is there a way I can make my theme styling more specific to avoid having something like I was thinking about adding a prefix to my generated classes to have something like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You have to go a few levels of abstraction deeper. Theme UI uses Emotion to generate classes, and Emotion's CacheProvider allows you to specify Stylis plugins. |
Beta Was this translation helpful? Give feedback.
You have to go a few levels of abstraction deeper. Theme UI uses Emotion to generate classes, and Emotion's CacheProvider allows you to specify Stylis plugins.
You can use
stylis-plugin-extra-scope
by Andarist to prefix your selectors with that#my-widget
.emotion-js/emotion#712 (comment)