Wondering if anyone can help me with my theme, as I cannot for the life of me get it to apply a text style.
Below is my structure, and I am wanting to apply a style to the h1 tag inside of the shadow-root
inside the hui-grid-card
In my themes.yaml
I am using the card-mod-view-yaml
option like so:
card-mod-view-yaml: >
"grid-layout$":
hui-grid-card:
$: |
h1 {
line-height: 0 !important;
padding: 1vw 0 0vw 0 !important;
font-weight: 500 !important;
color: red !important;
}
From what I can tell, this should be working:
card-mod-view-yaml
styles inside of hui-view
grid-layout$
styles inside of the grid-layout
shadow-root
hui-grid-card
goes into the hui-grid-card
$:
goes into the first shadow-root
h1
applies the style to the h1 tag
Clearly though this isn’t working as you can see that “Office” below has left padding, normal font-weight and is not red. The card-header class is applied by the layout-card, however my styles aren’t even being applied, let alone being overridden (which shouldn’t matter due to !important)

