diff --git a/docs/scripts/buildApi.js b/docs/scripts/buildApi.js
index 3f156b354d1158..ed72a3950c52c8 100644
--- a/docs/scripts/buildApi.js
+++ b/docs/scripts/buildApi.js
@@ -8,7 +8,7 @@ import generateMarkdown from '../src/modules/utils/generateMarkdown';
import { findPagesMarkdown, findComponents } from '../src/modules/utils/find';
import { getHeaders } from '../src/modules/utils/parseMarkdown';
import createMuiTheme from '../../packages/material-ui/src/styles/createMuiTheme';
-import getStylesCreator from '../../packages/material-ui/src/styles/getStylesCreator';
+import getStylesCreator from '../../packages/material-ui-styles/src/getStylesCreator';
function ensureExists(pat, mask, cb) {
mkdir(pat, mask, err => {
diff --git a/docs/src/modules/components/AppWrapper.js b/docs/src/modules/components/AppWrapper.js
index cc3608bcd0288a..158ddfe6eacc8f 100644
--- a/docs/src/modules/components/AppWrapper.js
+++ b/docs/src/modules/components/AppWrapper.js
@@ -2,8 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import url from 'url';
-import { MuiThemeProvider } from '@material-ui/core/styles';
-import { StylesProvider } from '@material-ui/styles';
+import { StylesProvider, ThemeProvider } from '@material-ui/styles';
import acceptLanguage from 'accept-language';
import { lightTheme, darkTheme, setPrismTheme } from '@material-ui/docs/MarkdownElement/prism';
import { updatePageContext } from 'docs/src/modules/styles/getPageContext';
@@ -186,7 +185,7 @@ class AppWrapper extends React.Component {
sheetsManager={pageContext.sheetsManager}
sheetsRegistry={pageContext.sheetsRegistry}
>
- {children}
+ {children}
);
diff --git a/docs/src/modules/components/DemoFrame.js b/docs/src/modules/components/DemoFrame.js
index 07aa4ec89ee0f0..bb460dba3c1a2a 100644
--- a/docs/src/modules/components/DemoFrame.js
+++ b/docs/src/modules/components/DemoFrame.js
@@ -1,8 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';
import { create } from 'jss';
-import { withStyles, jssPreset } from '@material-ui/core/styles';
-import { StylesProvider } from '@material-ui/styles';
+import { withStyles } from '@material-ui/core/styles';
+import { jssPreset, StylesProvider } from '@material-ui/styles';
import NoSsr from '@material-ui/core/NoSsr';
import rtl from 'jss-rtl';
import Frame from 'react-frame-component';
diff --git a/docs/src/modules/components/bootstrap.js b/docs/src/modules/components/bootstrap.js
index 6af952cb7b9f94..388d2055e07a45 100644
--- a/docs/src/modules/components/bootstrap.js
+++ b/docs/src/modules/components/bootstrap.js
@@ -1,7 +1,6 @@
// Use the same helper as Babel to avoid bundle bloat.
import 'core-js/modules/es6.array.find-index';
import 'core-js/modules/es6.set';
-import { install } from '@material-ui/styles';
// Disable auto highlighting
// https://github.com/PrismJS/prism/issues/765
@@ -9,5 +8,3 @@ if (process.browser) {
window.Prism = window.Prism || {};
window.Prism.manual = true;
}
-
-install();
diff --git a/docs/src/modules/utils/getDemoConfig.js b/docs/src/modules/utils/getDemoConfig.js
index 33fb995a439b81..136e0b15b9b631 100644
--- a/docs/src/modules/utils/getDemoConfig.js
+++ b/docs/src/modules/utils/getDemoConfig.js
@@ -17,31 +17,6 @@ ReactDOM.render(, document.querySelector('#root'));
};
}
-function hooksDemo(demoData) {
- return {
- dependencies: getDependencies(demoData.raw, { reactVersion: 'next' }),
- files: {
- 'index.js': `
-import React from 'react';
-import ReactDOM from 'react-dom';
-import Demo from './demo';
-import { createMuiTheme } from "@material-ui/core/styles";
-import { ThemeProvider } from "@material-ui/styles";
-
-const theme = createMuiTheme();
-
-ReactDOM.render(
-
-
- ,
- document.querySelector("#root")
-);
- `,
- 'demo.js': demoData.raw,
- },
- };
-}
-
function tsDemo(demoData) {
return {
dependencies: getDependencies(demoData.raw, { codeLanguage: CODE_VARIANTS.TS }),
@@ -79,7 +54,6 @@ function getLanguageConfig(demoData) {
case CODE_VARIANTS.TS:
return tsDemo(demoData);
case CODE_VARIANTS.HOOK:
- return hooksDemo(demoData);
case CODE_VARIANTS.JS:
return jsDemo(demoData);
default:
diff --git a/docs/src/pages/css-in-js/advanced/advanced-de.md b/docs/src/pages/css-in-js/advanced/advanced-de.md
index 0411064e3a8d8e..ec0173c4d75216 100644
--- a/docs/src/pages/css-in-js/advanced/advanced-de.md
+++ b/docs/src/pages/css-in-js/advanced/advanced-de.md
@@ -192,7 +192,7 @@ export default App;
## Klassennamen
-You may have noticed that the class names generated by our styling solution are **non-deterministic**, so you can't rely on them to stay the same. The class names are generated by [our class name generator](/css-in-js/api/#creategenerateclassname--options----class-name-generator) Let's take the following style as an example:
+You may have noticed that the class names generated by our styling solution are **non-deterministic**, so you can't rely on them to stay the same. The class names are generated by [our class name generator](/css-in-js/api/#creategenerateclassname-options-class-name-generator) Let's take the following style as an example:
```jsx
const useStyles = makeStyles({
@@ -283,7 +283,7 @@ Basically, CSP mitigates cross-site scripting (XSS) attacks by requiring develop
-
+
This vulnerability would allow the attacker to execute anything. However, with a secure CSP header, the browser will not load this script.
@@ -322,4 +322,4 @@ Then, you must pass this nonce to JSS so it can add it to subsequent `