|
2 | 2 |
|
3 | 3 | <p class="description">You can leverage our styling solution, even if you are not using our components.</p>
|
4 | 4 |
|
5 |
| -> ⚠️ `@material-ui/styles` is unstable (alpha version). |
6 |
| -Hopefully, we will make it the default style implementation for the core components in Material-UI v4. |
7 |
| -[Follow this path](/customization/css-in-js/) to read the documentation |
8 |
| -of the default style implementation. |
9 |
| - |
10 | 5 | Material-UI aims to provide strong foundations for building dynamic UIs.
|
11 | 6 | For the sake of simplicity, **we expose our styling solution to users**.
|
12 | 7 | You can use it, but you don't have to. This styling solution is [interoperable with](/guides/interoperability/) all the other major solutions.
|
@@ -41,24 +36,6 @@ npm install @material-ui/styles
|
41 | 36 | yarn add @material-ui/styles
|
42 | 37 | ```
|
43 | 38 |
|
44 |
| -### Migration for `@material-ui/core` users |
45 |
| - |
46 |
| -To switch from the default style implementation to this newest version, you need to execute the following code **before importing any** Material-UI's components: |
47 |
| - |
48 |
| -```js |
49 |
| -import { install } from '@material-ui/styles'; |
50 |
| - |
51 |
| -install(); |
52 |
| -``` |
53 |
| - |
54 |
| -It is **recommended** to place the above code in a separate file (e.g. `bootstrap.js`) and to import it in your application's entry point (e.g. `index.js`). |
55 |
| -This ensures that the installation is executed before anything else, because ECMAScript imports are hoisted to the top of the module. If the installation step is not performed correctly the resulting build could have conflicting class names. |
56 |
| - |
57 |
| -We will make `@material-ui/styles` the default style implementation for the core components in Material-UI v4. This installation step is **temporary**. |
58 |
| -Behind the scenes, the `install()` function switches the styling engine the core components use. |
59 |
| - |
60 |
| -Also, the `@material-ui/core/MuiThemeProvider` component can be replaced with `@material-ui/styles/ThemeProvider`. We will remove this component in v4. |
61 |
| - |
62 | 39 | ## Getting started
|
63 | 40 |
|
64 | 41 | We provide 3 different APIs. They all share the same underlying logic.
|
|
0 commit comments