06 Jul 2022
02:18 PM
- last edited on
20 Apr 2023
09:06 AM
by
educampver
Solved! Go to Solution.
06 Jul 2022
02:23 PM
- last edited on
02 May 2023
02:28 PM
by
educampver
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/
06 Dec 2024 10:50 PM
Hello, it looks like the 'useCurrentTheme' hook is deprecated. What should we use instead?
10 Dec 2024 01:46 PM - edited 10 Dec 2024 01:46 PM
Hi Chris,
That hos have been removed from @dynatrace/strato-components-preview/layouts
and moved to @dynatrace/strato-components
13 Dec 2024 12:30 AM
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.