đ¨Themes
The theme specifies the color of the components, darkness of the surfaces, level of shadow, appropriate opacity of ink elements, etc.
Themes let you apply a consistent tone to your app. It allows you to customize all design aspects of your project in order to meet the specific needs of your business or brand.
To promote greater consistency between apps, each theme has light and dark variants By default, components use the light theme type.
Theme provider
If you wish to customize the theme, you need to use the ThemeProvider
component in order to inject a theme into your application. However, this is optional; BlueBase components come with a default theme.
ThemeProvider
relies on the context feature of React to pass the theme down to the components, so you need to make sure that ThemeProvider
is a parent of the components you are trying to customize. You can learn more about this in the API section.
Custom Themes
Theme builder
The community has built great tools to build a theme:
mui-theme-creator: A tool to help design and customize themes for the MUI component library. Includes basic site templates to show various components and how they are affected by the theme
Material palette generator: The Material palette generator can be used to generate a palette for any color you input.
Last updated