panhans / HomeAssistant

Home Asisstant related stuff like blueprints for automations and scripts.
90 stars 25 forks source link

Grey background for e.g. room card #36

Closed hAMMERlized closed 10 months ago

hAMMERlized commented 10 months ago

Hey man,

thanks for that wonderful theme you have created. I am playing around with it and customizing my rounded dashboard. My question is pretty stupid but as i am not familar with styling cards i couldn't figure it out myself.

How can i set that grey background that you have on your screenshots, for example, your room cards are on? I have copied your rounded.yaml and all templates but it is not showing up.

Again, sorry for that silly question. Thanks.

Best Regards, Sebastian

panhans commented 10 months ago

Hi,

I think this is what you're looking for:

- type: "custom:mod-card"
  style: |
    ha-card {
      background-color: var(--contrast4);
      padding: 16px;
      margin: 0px;
    }
  card:
    type: vertical-stack
    cards:
      - type: your:cards