Replies: 2 comments
-
Or is it possible to add an additional css property --inactive-background-colour and that has one value for light mode and switches to another colour for dark mode? Is it possible to create custom css variables that know about dark/light modes? |
Beta Was this translation helpful? Give feedback.
-
In
So that class is added based on the GlobalState state, You should be able to tap in to that too by injecting it into your own code:
You can do the CSS variables things you are describing by using JavaScript. In fact, that is what the web components script is doing itself as well. But it is not easy to do and I do not have the expertise to help you with that. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to get the dark mode within the main layout and set a class on an element here with "dark" if in dark mode and nothing if not?
I'm trying to do something similar to how the MessageBar adds the class dark but can't work out how that's happening?
Beta Was this translation helpful? Give feedback.
All reactions