FluentUI 9 figure out if inside a light or dark theme #29794
Unanswered
timotheeguerin
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is it possible in a component to figure out if the current theme is a light or dark theme. I would like to pick the monaco editor theme(
vs-light
orvs-dark
) automatically depending on the fluent UI theme.This is inside a library that respect the fluentui theme so I don't really want users to have to provide a 2nd context to have to specify that.
Another scenario I had was being able to pick different images depending on the theme(light or dark).
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions