Onclick button set a css selector

Any option to set a css when i click a button?

Thank you

You can use a variable
example to toggle a simple dark mode

and what about any other css select not dark mode


You can search how to use custom CSS Retool in the forums

thank you!

Great solution above @Oscar_Ortega - and you're right, there are several posts across the forums about how to use custom CSS in Retool.

For example, for folks who find this post who are looking to learn about your options for implementing custom CSS in Retool, check out this Tips & Tricks post by my teammate Isaac!