Closed jrdn91 closed 5 years ago
I think the problem is that you create two different channels
for the theming and that's why it doesn't work.
I think Material-UI is using their own channel
and you are creating your own channel
in this line:
export const theming = createTheming('__EVENT_GIVES_THEME__');
This means that Material-UI can't see your theme and you can't see the MUI Theme.
Material-UI uses the channel name __THEMING__
as seen here.
I have created a new themeable wrapper for my components but I would like to extend the
Material-UI
theme so I can have access to it's properties likepalette
andspacing
This is my current setup. All components are rendered within an app layout like so
But I guess because of the new theme I created it's not inheriting any of this?
An example of how I'm using this if it helps understand is I have three files with each component, a wrapper that applies the theme and styles, a component file with the actual component and then a styles file where I put all my classes. Here is what one looks like
QuantityInput.styles.js
QuantityInput.component.jsx