I use quite a few dividers in my ui-lovelace.yaml, and wondered if I could simplify the code by adding some of the parameters to my themes.yaml file instead of ui-lovelace.yaml
Here’s the code I use in ui-lovelace.yaml
- type: divider
style:
height: 1px
width: 80%
margin-left: auto
margin-right: auto
margin-top: 5px
margin-bottom: 5px
background: "var(--divider)"
And here's the code I use in themes.yaml
divider: '#454b57'
Anyone know how I could change it so that the details are in themes.yaml?
I’m now trying to add it to my config but struggling to get the code to validate.
Should the ‘anchors:’ code go in configuration.yaml, themes.yaml, or ui-lovelace.yaml? (Or somewhere else?)