Skip to content

docs(FAQ): add theming section #5383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/knowledge-base/FAQ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,14 @@ UI5 Web Components for React comes with a [publicly available](https://github.co

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).

## Why is changing the theme not working?

You have to ensure to import the `Assets` with the different themes, otherwise only the default theme will be used.

```ts
import '@ui5/webcomponents-react/dist/Assets';
```

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).

<Footer />