cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UI themes

PennyScully
Dynatrace Helper
Dynatrace Helper
How do adapt the app UI according to the user's theme?
4 REPLIES 4

sinisa_zubic
Dynatrace Champion
Dynatrace Champion

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: https://developer.dynatrace.com/ui-design/dark-light-theme/ 

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

haris
Dynatrace Advisor
Dynatrace Advisor

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.

Featured Posts