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
I also export my own ThemeProvider which is MuiThemeProvider with a defaultTheme baked in
import{MotifThemeProvider}from'motif';
Then In my Gatsby site I want to wrap my MotifThemeProvider and import my components (eg Button).
Right now it works but I get a flash of unstyled content, which led me to this plugin.
I have it working, but when I look under the hood it looks like the plugin itself also adds a MuiThemeProvider and that you can just pass in the theme.
I was wondering if you could explain conceptually what this plugin does, assuming that I might need to write something custom for our specific use case.
Alternatively maybe I can export my theme and pass it via the options in this plugin, but ideally I want to leverage our own ThemeProvider to try as much as possibel to consume our components.
The issue I am having is that none of my components are applying my styles, it looks like the default MUI themes
The text was updated successfully, but these errors were encountered:
I have a component library ("Motif") that exports components, some of which are built on Mui.
I also export my own
ThemeProvider
which isMuiThemeProvider
with a defaultTheme baked inThen In my Gatsby site I want to wrap my
MotifThemeProvider
and import my components (egButton
).Right now it works but I get a flash of unstyled content, which led me to this plugin.
I have it working, but when I look under the hood it looks like the plugin itself also adds a
MuiThemeProvider
and that you can just pass in the theme.I was wondering if you could explain conceptually what this plugin does, assuming that I might need to write something custom for our specific use case.
Alternatively maybe I can export my theme and pass it via the
options
in this plugin, but ideally I want to leverage our ownThemeProvider
to try as much as possibel to consume our components.The issue I am having is that none of my components are applying my styles, it looks like the default MUI themes
The text was updated successfully, but these errors were encountered: