March 2019
Intermediate to advanced
534 pages
14h 52m
English
When the palette.type theme value changes from light to dark, the following palette values change:
Let's take a look at the two themes used in this example:
const light = createMuiTheme({ palette: { type: 'light', primary: blue, secondary: pink, error: { main: red[600] } }});const dark = createMuiTheme({ palette: { type: 'dark', primary: blue, secondary: pink, error: { main: red[600] } }});
These two themes are the same except for the palette.type value. Whenever you change this value, new color values are computed for the theme. For example, the new text color that you see in the dialog isn't static—it's a color that's computed by Material-UI in order to provide ...
Read now
Unlock full access