I feel like it SHOULD work when you BIND a gradient - by using the format "“linear-gradient(Xdeg, colorA, colorB)” - and using the COLOR variables from library - but it doesn’t work …
FWIW - You should add that to the whole dark / light mode / theme documentation and/or video. Based on other posts - as simple and awesome as the switch theme / library colors feature is - seems like folks (including me) are not fully grasping how to leverage it.
Why not add a “custom” button next to “Light” & “Dark” - so you have “Light” & “Dark” & “Custom” - this way a User can have MORE than just light, dark themes.
User clicks “custom” and you get a drop down - defaults to “add”. User clicks “add” and then names the theme - let’s say “sunrise” for example.
Now on any library color - when you click “Custom” - you see “sunrise” in the custom drop down - and you can define that color.
This way - Users can support multiple themes - not just light / dark modes.
@Alexis alternatively - you could allow user ability to BIND the Light and Dark colors to a variable in the Library.
This way - for example - you have “Background” as a Library color - you bind the Light to “varLightBackground” and you bind the Dark to “varDarkBackground” - and this way app could set up / define those variables based on a theme chosen by user.
This would allow WeWeb devs ability to have multiple/different color “themes” that all work in dark/light modes.