If you never use themes it is enough to follow the steps described here: Defining Themes
# Example configuration.yaml entry
frontend:
themes:
No Borders:
ha-card-border-radius: 1px ## or whatever radius you want
ha-card-border-color: rgba(0,0,0,0) ## transparent
Fo those dissappointed with new card borders; you can restore previous look using these theme variables:
ha-card-border-width: "0px" # controls the width of border, set to 0 to remove
ha-card-border-color: "#xxyyzz" # controls the color of the border line, set to card background color to blend with card
There is an even better way to get rid of borders. The following needs the card-mod addon to work. It only removes boarders from the lovelace view, so for example the integration page looks normal.
no-borders:
modes:
dark:
# I think there must be at least one setting here to get this to work, try for example
text-color: '#ffffff'
card-mod-theme: no-borders
card-mod-root-yaml: |
.: |
ha-app-layout {
--ha-card-border-width: 0px;
--ha-card-border-radius: 1px
}
I agree.
But that should be for those - who want to have the “default” theme - just without the round borders… similar as it was with the original “outline” theme from @frenck
Afaik, you can’t add these two lines to a theme that does not appear in the “themes” folder?
you either dont have themes configured (and by default use only the ‘default’ theme), or you do have themes configured.
if the former, you can use the new edits by creating a first smal theme, with only those lines. And select that theme in the selector. (you can not add anything to the ‘default’ theme)
if the latter, add it to any/all themes and continue like before.
easily done with a yaml anchor on the top theme in your file:
<<: &generic
ha-card-border-radius: 0px
ha-card-border-width: 0px
any other stuff you want in all other themes
that’s what I did - and that’s what I would like to share on HACS for those who don’t want to use one of the many themes because they still like the color-theme from the default installation - but don’t want to have rounded cards
so - basically - just a “default” theme without “radius”
Still trying to figure out how to do the switch between dark / light mode… since this does not seem to work in the “Set theme” service…
frontend.set_theme does what is says, set a theme.
In a theme you can have specifics for light and dark_mode. If not, again, it follows the settings for default
dark/light mode follow the mode your device is in.
however, you can set themes, and not configure those dark/light modes at all. I dont use them, and dont use dark mode either. Eg I switch to dark themes on certain occasions (below horizon/away) or red theme (alarm triggered…)
So depending in your wishes, you can customize away
the theme will be changed… but only the light mode is available.
I can ONLY change the mode within the User settings:
So in my eyes, the “Mode” selection in the service seems not to work?!
And the theme selection itself does ONLY work, when light mode has been selected.
maybe move this to a separate thread as it is not about the release, but about the more generic theme workings.
it would also give you some more playground and experiment with Home Assistant Frontend - Home Assistant
EDIT: I went this route instead and also added a resource in the browser instead (the companion app doesn’t want to load new modules that way without a wipe).
Do you understand that any attempts of fixing a design by themes is a WRONG way?
Wrong - at least because not all results depend on a value of some variable.