A yellowish theme using a lot of transparency I build within the last weeks and was asked to share.
The code:
summer_breeze:
lovelace-background: 'center / cover no-repeat url("/local/background-summer_breeze.jpg") fixed' #Background-image
# Define basic colors
element-dark-color: "rgba(44,29,5,0.9)" # nearly black
element-light-color: "rgb(47, 35, 23,0.6)" # Medium grey
element-medium-color: "rgba(44,29,5,0.7)" # Light grey
accent-color: 'rgba(218,165,32,0.8)' # dark-yellow
accent-color-darker: 'rgba(184,134,11,1)'
background-color: '#F7F8F9' # Light grey
background-color-2: '#dedfe0' # Light grey
transparent-background-color: 'rgba(255,255,255,0.2)' # white transparent
#transparent-background-color-darker: 'rgba(89,87,86,0.15)' # grey transparent
less-transparent-background-color: 'rgba(89,87,86,0.5)' # grey less transparent
non-transparent-background-color: '#A28E66' # non transparent yelowish grey
border-color: '#EAEAEA' # Light grey border
# Header
primary-color: 'var(--non-transparent-background-color)' # color of the headers background, the highlighted element in the Sidebar, buttons in lovelace
text-primary-color: 'var(--element-medium-color)'
# Compact Custom Header
cch-background: 'var(--less-transparent-background-color)'
cch-button-color-menu: 'var(--element-dark-color)'
# Left Menu
paper-listbox-background-color: transparent #'var(--non-transparent-background-color)' # Background of the Menu in sidebar (containing shortcuts)
# UI
#paper-card-header-color: #'var(--element-dark-color)' # Title in settings - doesnt seem to have any effect
primary-background: 'var(--background-color)' # background of dialogs, title background in left menu)
sidebar-background: 'var(--background-color-2)'
app-toolbar-background-color: transparent
# Card
paper-card-background-color: 'var(--transparent-background-color)' # Background of cards -> mostly transparent
ha-card-border-radius: '10px' # rounded corners
#dark-primary-color: red #'var(--element-dark-color)' # doesnt seem to have any effect
#primary-element-dark-color: red #'var(--element-dark-color)' # doesnt seem to have any effect
paper-listbox-color: 'var(--element-dark-color)'
light-primary-color: 'var(--accent-color)'
secondary-element-dark-color: green #'var(--element-light-color)'
paper-dialog-button-color: red #'var(--element-dark-color)'
secondary-background-color: transparent #'var(--less-transparent-background-color)' # secondary color that can be used by cards, e.g. custom updater card uses it to color every second row, also header of popups
paper-dialog-background-color: 'var(--background-color)' # background color of dialogs that appear when clicking on a entity
paper-dialog-color: 'var(--element-light-color)' # text color of these dialogs
paper-dialog-header-background: 'var(--element-dark-color)'
more-info-header-color: 'var(--element-dark-color)'
more-info-header-background: white #'var(--less-transparent-background-color)'
# Icons
paper-item-icon-color: 'var(--element-light-color)' # Off
paper-item-icon-active-color: 'var(--accent-color-darker)' # On (gets overriden by light color if its sent)
# Switches
paper-toggle-button-checked-button-color: '#FFF' # Knob On
paper-toggle-button-checked-bar-color: 'var(--accent-color-darker)' # Background On
paper-toggle-button-unchecked-button-color: '#FFF' # Knob Off
paper-toggle-button-unchecked-bar-color: 'var(--element-light-color)' # Background Off
#slider
paper-slider-knob-color: 'white' # color of the handle
paper-slider-container-color: 'rgba(44,29,5,0.2)' # color of the sliders line
paper-slider-active-color: 'rgba(44,29,5,0.4)' # color of the active part of the slider (left of the knob)
paper-slider-knob-start-color: 'rgba(255,255,255,0.6)' # color of the knob when beeing at 0
paper-slider-height: '5px' # thickness of the sliders' line
#Progress
paper-progress-height: 7px # height of the progress bars
# Shadows
shadow-elevation-2dp_-_box-shadow: 'inset 0px 0px 0px 1px var(--border-color)'
shadow-elevation-4dp_-_box-shadow: 'var(--shadow-elevation-2dp_-_box-shadow)'
shadow-elevation-6dp_-_box-shadow: 'var(--shadow-elevation-2dp_-_box-shadow)'
shadow-elevation-8dp_-_box-shadow: 'var(--shadow-elevation-2dp_-_box-shadow)'
shadow-elevation-10dp_-_box-shadow: 'var(--shadow-elevation-2dp_-_box-shadow)'
shadow-elevation-12dp_-_box-shadow: 'var(--shadow-elevation-2dp_-_box-shadow)'
shadow-elevation-14dp_-_box-shadow: 'var(--shadow-elevation-2dp_-_box-shadow)'
shadow-elevation-16dp_-_box-shadow: '0px 0px 0px 3px var(--light-color)'
ha-card-box-shadow: "0px 5px 5px rgba(0,0,0,0.3)"
The background image:
(save this as
background-summer_breeze.jpg
in your www
folder)
How to apply this theme (for beginners)
-
create a folder named
themes
in your home assistant directory -
download summer_breeze.yaml and place it in this new folder
– (place other themes’ files you downloaded before/your preexisting themes.yaml to that very same folder) -
download the background image and place it in your
www
folder (create a folder calledwww
if there is none yet) -
add the following to your
configuration.yaml
frontend: themes: !include_dir_merge_named themes
-
open the lovelace raw editor in the frontend (top right corner of the overview) and add this line:
background: var(--lovelace-background)
-
apply the theme by clicking on your Avatar/your letter in the sidebar and choose summer_breeze there
-
you’re done!
Custom components I used / Credits:
- Compact Custom Header
-
Card Modder
- changes the colors of the markdown cards I used for headers (“Lautsprecher”, “Sensoren”) darker
- changes the background to transparent for cards used inside vertical stack in card (image 3)
-
Vertical Stack in Card
- used for cards in image 3
-
Slider Entity Row
- for the sliders used underneath each light
- Simple Weather Card
- Mini Graph Card
- Mini Media Player
- Theme Maker (helped me a lot while tweaking)
- I started based on Clear Theme, thanks a lot for this @naofireblade
Hope you like it!
PS: If anyone finds a way to increase the space between cards and between the columns, any hint would be appreciated!