Hi,
I have tried to modify the background image to my own image.
It works perfectly on PC Chrome browser, but not good in mobile app Chrome browser whereby the background image is scaled bigger and become not nice.
So how to solve this issue in order one background image works perfectly on both PC Chrome browser and mobile app Chrome browser?
Thanks.
Thank you very much, very nice looking UI
same problem here:
no background showing
title: Casa
views:
- title: Home
background: var(âbackground-image)
icon: mdi:home-circle
cards:
ecc ecc
I added the fonts variables as described above to my theme and the font as a resource to Lovelace but the fonts on the cards do not change. They are still using Robot ⊠All other fonts in HA changed to the theme defined font. Any ideas whatâs wrong? Using HA 0.91.2
@jerrychong25 these are the settings in my Lovelace:
background: top / cover no-repeat url('/local/ha.jpg') fixed
Itâs a shorthand notation, combining size, position,⊠in one line, but itâs standard css. For more info, see f.e. https://www.webfx.com/blog/web-design/background-css-shorthand/
I suggest you try some different options for the size-part.
@tefinger, tested it, and indeed, it doesnât work in the newer releaseâŠ
I experimented a little further. First, you need to check if the font is also the primary font in your themes.yaml.
What works: if you use custom cards, you can add a font like this (in the style section of the card):
font-family: var(--primary-font-family)
If you do that in every card, after that, if you change your primary font, it will change in all the cards.
The shadows are being displayed despite adding this to my theme.
My HA Version is 90.1.
Do you know what might be wrong?
looks nice! it looks like you modified the theme, care to share? how do you have the transparency?
Thanks!
I used the card modder in every card: https://github.com/thomasloven/lovelace-card-modder
In most cards, I then used these styles:
style:
background-color: 'rgba(255,255,255,0.50)'
border-radius: 2px
box-shadow: '0 1px 1px rgba(0,0,0,0.05)'
font-family: var(--primary-font-family)
that looks great!
I canât get any of the resources working on the latest HA version. Am I the only one with this issue?
@Nitram @tefinger crossposting from another thread, as I found an easier way to customize the fonts on the cards in case youâre still looking for this.
Any chance of adding this to github?
How did you get the cards to be transparent and the header to be so small?
Thanks a lot for your very nice themes! I use both dark and clear! I added transparency to the cards as well (more modern look), but instead of using card modder for every card I changed some lines in your theme file.
Line changed (where the 0.3 is the transparency):
paper-card-background-color: 'rgba(255, 255, 255, 0.3)'
And for the dark one:
paper-card-background-color: 'rgba(0, 0, 0, 0.3)'
Thanks again!
Use ha-card-background
instead.
is deprecated and not guaranteed to work with transparency.paper-card-background-color
Ah thanks for the advice! Didnât know that yet!