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
## Styling UI5 Web Components for React components
14
14
15
15
You can change the appearance of the Web Components by using [CSS Variables](https://www.w3schools.com/Css/css3_variables.asp).
16
-
Per default, we are injecting the Fiori 3 theme parameters as CSS Variables into the `<head>`.
16
+
Per default, we are injecting the Horizon theme parameters as CSS Variables into the `<head>`.
17
17
For example, if you want to change the color of all texts that use the `--sapTextColor` variable, you can create an additional `style` tag with the following content:
18
18
19
19
```html
@@ -60,11 +60,7 @@ Some components like the `ObjectPage`, `DynamicPage` and `AnalyticalTable` use t
60
60
## Style your own components
61
61
62
62
It's quite likely you have to create some custom components when you are building an app.
63
-
In order to reuse our central styling approach, you can import the `ThemingParameters` that contain the various CSS variables used in our theming.
64
-
65
-
If you want to style your components with the `react-jss` syntax, you can use the `createUseStyles` styling hook.
66
-
`react-jss` comes already as a dependency of `@ui5/webcomponents-react` to your project - but we recommend adding it to your `package.json` as well.
67
-
**Please make sure you are installing `"react-jss": "^10.0.0"`**. Previous versions of this library won't work correctly together with our library.
63
+
In order to reuse our central styling approach, you can import the `ThemingParameters` that contain the various CSS variables used in our theming, or use the CSS variables directly.
68
64
69
65
<MessageStrip
70
66
design={MessageStripDesign.Information}
@@ -85,28 +81,14 @@ If you want to style your components with the `react-jss` syntax, you can use th
85
81
86
82
You can then create a custom component by following this recipe:
0 commit comments