Implement a way to add CSS selector for all widgets

Hi Streamlit team, is it possible to create a parameter in all widgets to use it as a selector in CSS? Today it is very painful to customize the appearance of elements using CSS because the selectors are not fixed.
It would be awesome to have a way to set a value and use it as a selector on the CSS side.
Thanks in advance!

Hey @delbrison,

Thanks for your suggestion! Styling elements via CSS is indeed a big pain. We have this on our roadmap and already specced out different solutions on how we might enable this. I hope we can roll something out to improve on this soon!

2 Likes

Thanks, @lukasmasuch
I can’t wait to play with this new feature!