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!

1 Like

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!

3 Likes

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

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.