Skip to content

Commit f9e8c91

Browse files
authored
docs(FAQ): add theming section (#5383)
1 parent ad9518d commit f9e8c91

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/knowledge-base/FAQ.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,14 @@ UI5 Web Components for React comes with a [publicly available](https://github.co
7373

7474
To reuse these styles, you can either use the CSS variable, or use our [Theming Parameters](https://sap.github.io/ui5-webcomponents-react/?path=/docs/knowledge-base-public-utils--docs#theming-parameters).
7575

76+
## Why is changing the theme not working?
77+
78+
You have to ensure to import the `Assets` with the different themes, otherwise only the default theme will be used.
79+
80+
```ts
81+
import '@ui5/webcomponents-react/dist/Assets';
82+
```
83+
84+
Further information about theming can be found in our and the UI5 Web Components [Theming documentation](https://sap.github.io/ui5-webcomponents-react/?path=/docs/getting-started--docs#theming).
85+
7686
<Footer />

0 commit comments

Comments
 (0)