Skip to content

Responsive Light/Dark Mode #28410

Answered by behowell
randose asked this question in General
Discussion options

You must be logged in to vote

Hi @randose, no FluentUI v9 doesn't provide this behavior. You'll need to add your own logic to pick between the dark or light theme that you pass to the FluentProvider. Check the Excel add-in documentation to see if there's a way to detect dark/light mode. Or, here's a stackoverflow answer about how to detect the user's OS theme in JavaScript: https://stackoverflow.com/questions/56393880/how-do-i-detect-dark-mode-using-javascript#answers

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by behowell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants