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'
)
- What exactly are evals? The documentation is scarce on them and I can't seem to get any complex logic working right in them1 replies