m-wrzr / streamlit-searchbox

Streamlit searchbox that dynamically updates and provides a list of suggestions based on a provided function
MIT License
240 stars 31 forks source link

Using the dark theme the suggestions become unreadable #2

Closed hansthen closed 1 year ago

hansthen commented 1 year ago

When we select the dark theme for our streamlit applications, the suggestions are shown as white text on a white background. The text input field also has a white background, but there the font stays black.

It would be nice if the component would use the same theme as for the application.

m-wrzr commented 1 year ago

Thanks for the suggestion! Makes sense to support dark mode and pass different streamlit styles.

Just released an updated version 0.0.4 that should support most available styling parameters. The color scheme is similar to st.multiselect and st.text_input. If you find any inconsistencies please let me know!