diff --git a/docs/src/pages/guides/server-rendering.md b/docs/src/pages/guides/server-rendering.md index 0365c4b83a34f7..dd07625562edc0 100644 --- a/docs/src/pages/guides/server-rendering.md +++ b/docs/src/pages/guides/server-rendering.md @@ -71,7 +71,6 @@ import { JssProvider, SheetsRegistry } from 'react-jss' import { create } from 'jss'; import preset from 'jss-preset-default'; import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles'; -import createPalette from 'material-ui/styles/palette'; import createGenerateClassName from 'material-ui/styles/createGenerateClassName'; import { green, red } from 'material-ui/colors'; @@ -81,11 +80,11 @@ function handleRender(req, res) { // Create a theme instance. const theme = createMuiTheme({ - palette: createPalette({ + palette: { primary: green, accent: red, type: 'light', - }), + }, }); // Configure JSS