Skip to content

Usage of Theme-UI in a widget based project. #1533

Answered by hasparus
mattscherzer asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mattscherzer
Comment options

@hasparus
Comment options

Answer selected by hasparus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants