UI themes

How do adapt the app UI according to the user’s theme?

You have to make use of design tokens and ‘useCurrentTheme’ hook. This how-to guide explains how you can make use of the user’s theme: Support dark and light themes | Dynatrace Developer

Hello, it looks like the ‘useCurrentTheme’ hook is deprecated. What should we use instead?

Hi Chris,

  • That hos have been removed from @dynatrace/strato-components-preview/layouts and moved to @dynatrace/strato-components

Hi Haris,
Thank you for your reply.
The deprecated theme control is still working fine. However, I will try using the other Dynatrace package, as you suggested.