Skip to content

Commit

Permalink
fix: muitheme variable change
Browse files Browse the repository at this point in the history
Signed-off-by: Alvaro Bueno <[email protected]>
  • Loading branch information
delagroove committed Apr 27, 2022
1 parent e094ac8 commit ddad190
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions custom/reactionTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* There are two theme files. This is for all MaterialUI components.
* The other theme file is `componentTheme.js`
*/
import { createMuiTheme } from "@material-ui/core/styles";
import { createTheme } from "@material-ui/core/styles";

const theme = createMuiTheme({
const theme = createTheme({
layout: {
mainContentMaxWidth: "1440px",
mainLoginMaxWidth: "1024px"
Expand Down
8 changes: 4 additions & 4 deletions docs/theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Variables for customizing the theme are located in the `[src/lib/theme/reactionT
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.

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

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

const theme = createMuiTheme({
const theme = createTheme({
overrides: {
// Override styles for the Starter kit header
SkHeader: { // Name of the component
Expand Down

0 comments on commit ddad190

Please sign in to comment.