Questions tagged [themeprovider]

Currently, there is no information available on how to use this tag... but stay tuned for updates!

The ThemeProvider does not automatically provide theme injections

After creating a theme using the createTheme method from @mui/material/styles, I attempted to apply this theme using ThemeProvider from the same package. This snippet showcases the dark theme that was created: export const darkTheme = createTheme({ pale ...

The Material-UI ThemeProvider applies styles globally, affecting all components instead of just the ones it wraps

In my React application, I have implemented a Component that contains multiple Material-UI Selects. In order to customize the styles of one specific Select, I created a theme and attempted to apply it using the ThemeProvider component. However, I encounter ...

The theming feature in React Material-UI v5 does not seem to be compatible with Story

After spending a few days customizing the primary color and adding two additional colors to the palette, I encountered an issue where the new colors were not being reflected on the button despite properly declaring them. Even wrapping the button under the ...

What is the best way to switch between light and dark themes with the ability to locally store the current theme?

Being new to the realm of react, I have been delving into the implementation of new features using Material-UI. One particular feature I am working on involves toggling between light and dark themes, with the current theme being stored locally within the b ...

Difficulty changing paper background color with Material UI ThemeProvider

I'm currently working on a React frontend project using Material UI. I've created a basic Paper component and I'm trying to change its background color to match the primary color set in ThemeProvider. Here's the snippet of my code: import React from 'react ...