How to change the background color of a section?

Using the new sections in HA, I like to color the background of each section. sections are not visible (at least not in dark mode). Does anyone know how and where to set a style or theme that changes the background color of the section itself? Here is a screenshot of such card:

Now when I fiddle with web-developer tools in my browser, I could change this:
afbeelding

and that results in the desired result like this:

How can I set this style using themes or card mod in order to make it permanent?

2 Likes

I was also trying to do something similar, but Iā€™d like to avoid using non-standard components (like card mod).
Maybe you can make this a feature request in home assistant?

After all, it should not be too difficult to implement.

1 Like