March 2019
Intermediate to advanced
534 pages
14h 52m
English
Let's say that you have a theme that sets the color palette and another theme that changes the border radius. You can merge both themes by nesting the MuiThemeProvider components. Here's an example:
import React from 'react';import { createMuiTheme, MuiThemeProvider} from '@material-ui/core/styles';import Button from '@material-ui/core/Button';import Dialog from '@material-ui/core/Dialog';import DialogActions from '@material-ui/core/DialogActions';import DialogContent from '@material-ui/core/DialogContent';import DialogContentText from '@material-ui/core/DialogContentText';import DialogTitle from '@material-ui/core/DialogTitle';import red from '@material-ui/core/colors/red';import pink from '@material-ui/core/colors/pink'; ...Read now
Unlock full access