Skip to content

Commit ddad190

Browse files
committed
fix: muitheme variable change
Signed-off-by: Alvaro Bueno <alvaro.bueno@mailchimp.com>
1 parent e094ac8 commit ddad190

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

custom/reactionTheme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* There are two theme files. This is for all MaterialUI components.
33
* The other theme file is `componentTheme.js`
44
*/
5-
import { createMuiTheme } from "@material-ui/core/styles";
5+
import { createTheme } from "@material-ui/core/styles";
66

7-
const theme = createMuiTheme({
7+
const theme = createTheme({
88
layout: {
99
mainContentMaxWidth: "1440px",
1010
mainLoginMaxWidth: "1024px"

docs/theming.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Variables for customizing the theme are located in the `[src/lib/theme/reactionT
1111
For example, you can change the various colors used for the primary color, fonts used, layout dimensions and more. All of the [default theme variables from Material UI](https://material-ui.com/customization/default-theme/) are available to override as well as any additional variables added for the example storefront itself.
1212

1313
```js
14-
import { createMuiTheme } from "@material-ui/core/styles";
14+
import { createTheme } from "@material-ui/core/styles";
1515

16-
const theme = createMuiTheme({
16+
const theme = createTheme({
1717
layout: {
1818
mainContentMaxWidth: "1440px",
1919
mainLoginMaxWidth: "1024px"
@@ -49,9 +49,9 @@ To add custom overrides, simply add an `overrides` object to the theme. The `ove
4949
**src/lib/theme/reactionTheme.js**
5050
5151
```js
52-
import { createMuiTheme } from "@material-ui/core/styles";
52+
import { createTheme } from "@material-ui/core/styles";
5353

54-
const theme = createMuiTheme({
54+
const theme = createTheme({
5555
overrides: {
5656
// Override styles for the Starter kit header
5757
SkHeader: { // Name of the component

0 commit comments

Comments
 (0)