MUI's default ThemeProvider
themeThemeOptionsProviderThemeOptionsuseThemeOptions().setThemeOptions()Also Implements Responsive Font Sizes
ThemeOptionsProviderimport { ThemeOptionsProvider } from "mui-extended"; // wrap all child components const component = ( <ThemeOptionsProvider themeOptions={themeOptions}> {children} </ThemeOptionsProvider> );
useThemeOptionsimport { useThemeOptions } from "mui-extended"; import { ThemeOptions } from "@mui/material"; // within the child component const { setThemeOptions } = useThemeOptions(); const newThemeOptions: ThemeOptions = { palette: { primary: { main: "#0000ff" } } }; setThemeOptions(newThemeOptions); // updates primary main color to "#0000ff"
pallete.mode
palette.primary.main
components.MuiTextField.defaultProps.variant
components.MuiFormControl.defaultProps.size
Write an email to opensource@sodaru.com