SandDance
SandDance copied to clipboard
SandDance Explorer Dark Mode
On the Demo page I can see that there is Dark Mode but when I spin up sample React application of SandDance Explorer package there is no theme change button.
Any idea why this feature is not enabled for me?
Hello @praveen5959 , the rationale is that sanddance-explorer is a component that can be embedded within any app or page, and we can't assume that the container has theming, or already has its own theme mechanism. So you must access it programmatically. See: https://github.com/microsoft/SandDance/blob/master/packages/sanddance-explorer/src/themes.ts https://github.com/microsoft/SandDance/blob/master/packages/sanddance-app/src/sanddanceApp.tsx#L217
This is probably semi-related - https://github.com/microsoft/SandDance/issues/392