WindmillWWindmill
Powered by
LeviathanL
Windmill•11mo ago
Leviathan

Is it possible to combine light and dark mode under one theme?

I'm creating theme styling for my company in Windmill and was wondering how people have approached light vs dark modes, do you keep them as two separate themes or can you combine them under on?

- Is there a ctx or global variable that could represent the color mode to all components?
- How could I change between two colors in the component styling using that variable? I.E. (
isDarkMode ? 'bg-dark-500' : 'bg-white-400'
isDarkMode ? 'bg-dark-500' : 'bg-white-400'
)
- What exactly are evals? The documentation is scarce on them and I can't seem to get any complex logic working right in them
WindmillJoin
3,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 6d ago

rubenf

Infrastructure as code

rubenf · 4w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

Is it possible to change workspace name?
Bagas WastuBBagas Wastu / help
3y ago
Is it possible to change payment method to wire transfer?
sirgtSsirgt / help
14mo ago
Is it possible to make a form field read-only?
South SummitSSouth Summit / help
2y ago
Is it possible to send attachment via "Send email" Flow step?
EvidenzEEvidenz / help
15mo ago