gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
33.94k stars 2.58k forks source link

[Theme Builder] - Change 'Tab item' background colour #9226

Closed elismasilva closed 2 months ago

elismasilva commented 2 months ago

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I want to be able to change the background color of the tab item element. It is taking on the background color that I assigned to the main background. I painted the desired area in green in the image to illustrate.

Additional context
image

abidlabs commented 2 months ago

Hi @elismasilva if there's a particular element that cannot be styled using the theme editor, you can target it with custom css and javscript, see: https://www.gradio.app/guides/custom-CSS-and-JS

elismasilva commented 2 months ago

Hi @elismasilva if there's a particular element that cannot be styled using the theme editor, you can target it with custom css and javscript, see: https://www.gradio.app/guides/custom-CSS-and-JS

Yes, I solved it using CSS. Since I built the theme in the theme builder, I didn't see a property to change there. If this functionality hasn't been discontinued, I thought it would be interesting to have this property there, because if I publish my theme it will be incomplete since I needed to add many things to the local CSS.