šŸ”¹ Card-mod - Super-charge your themes!

Been trying to get my old headers (top + bottom) back, but without succes
Iā€™m trying to accomplish a top header containing my messages (i used vertical marguee with CH for that in the old days)

  • another header at the bottomā€¦
    see

Tried with this code, although i dont understand it completely

Google Dark Theme:
  # Card mod stuff
  card-mod-theme: Google Dark Theme
  card-mod-root-yaml: |
    paper-tabs$: |
      /* This hides tab scroll arrows */
      paper-icon-button {
        display: none;
      }
    "ha-app-layout":
      $: |
        /* This makes sure the bottom scrollbar isn't hiding cards */
        #contentContainer {
          padding-top: 0px !important;
          padding-bottom: 48px !important;
        }
    .: |
      app-toolbar {
        height: 0;
      }
      app-toolbar > [main-title] {
        display: none;
      }
      .edit-mode, app-header, app-toolbar {
        background-color: var(--primary-background-color) !important;
        color: var(--primary-text-color) !important;
      }
      app-header {
        top: calc(100vh - 48px) !important;
      }
      ha-button-menu {
        top: 0;
        right: 0;
        z-index: 2;
        margin-left: 5px;
        position: absolute;
        display: none;
      }
      menu-button[style="visibility: hidden;"] {
        display: none;
      }
      ha-menu-button {
        z-index: 2;
        top: 24px;
        color: var(--app-header-text-color) !important;
      }
      paper-tabs {
        color: var(--app-header-text-color) !important;
        --paper-tabs-selection-bar-color: var(--primary-color) !important;
      }
      paper-tab[aria-selected="true"] {
        color: var(--primary-color) !important;
      }

The bottom bar is at the bottom, but when using phone, it floats in the middle of the screen, and my top bar is gone too :frowning:
Any help would be appreciated a lot !

Can you post a screenshot on desktop and mobile?

Actually i deleted all my code, cause i was not knowing what i was doing

Now i have

Google Light Theme:
  # Card Mod stuff
  card-mod-theme: Google Light Theme
  card-mod-root: |
    paper-tabs$: |
      /* This hides tab scroll arrows */
      paper-icon-button {
        display: none;
      }
      /This brings the header down */
      selectionBar {
        bottom: unset !important;
      }

But the header is not down, and iā€™m not sure how i add messages in the top header (+ title still showing there)

Thatā€™s an invalid comment.
Change

to /* This

I did, but still everything is at top

You only copied the top part, copy all of the code. Also uncomment as needed

Is there a way to make the bar transparent again? With Custom Header i had this:

custom_header:
background: ā€˜rgba(10, 10, 10, 0.5)ā€™
compact_mode: true
exceptions:
- conditions: {}
config: {}
hide_help: true
voice_dropdown: true

That made the bar transparent, now i removed Custom Header and used the yaml from the wiki. The bar is now not transparent anymore. What line can I modify to get it back?

Add to your theme

app-header-background-color: 'rgba(0, 0, 0, 0.0)'
app-header-text-color: 'rgba(255, 255, 255, 1)'

Not sure if someone else mentioned this, but you can sorta get it to work this way. If you look at the example below, all you have to add to your original theme is card-mod-theme to your ā€œnewā€ theme that just handles the compact header. This way, you can quickly add it to all your existing themes and reuse the code without re-typing it.

Original Theme (midnight theme from HACS):

#
# Midnight Theme
#
midnight:
  card-mod-theme: compact-header_1  #Add this line
  
  accent-color: "#E45E65"
  card-background-color: "var(--primary-background-color)"
  dark-primary-color: "var(--accent-color)"
  disabled-text-color: "#7F848E"
  divider-color: "rgba(0, 0, 0, .12)"
  google-blue-500: "#4285f4"
  google-green-500: "#39E949"
  google-red-500: "#E45E65"
  google-yellow-500: "#f4b400"
  ha-card-background: "#434954"
  label-badge-background-color: "#2E333A"
  label-badge-blue: "#039be5"
  label-badge-border-color: "green"
  label-badge-green: "#0DA035"
  label-badge-grey: "var(--paper-grey-500)"
  label-badge-red: "var(--accent-color)"
  label-badge-text-color: "var(--primary-text-color)"
  label-badge-yellow: "#f4b400"
  light-primary-color: "var(--accent-color)"
  markdown-code-background-color: "var(--paper-listbox-background-color)"
  paper-card-header-color: "var(--accent-color)"
  paper-dialog-background-color: "#434954"
  paper-grey-200: "#414A59"
  paper-grey-50: "var(--primary-text-color)"
  paper-grey-500: "#9e9e9e"
  paper-item-icon_-_color: "green"
  paper-item-icon-active-color: "#F9C536"
  paper-item-icon-color: "var(--primary-text-color)"
  paper-item-selected_-_background-color: "#434954"
  paper-listbox-background-color: "#2E333A"
  paper-listbox-color: "var(--primary-color)"
  paper-slider-active-color: "var(--accent-color)"
  paper-slider-container-color: "linear-gradient(var(--primary-background-color), var(--secondary-background-color)) no-repeat"
  paper-slider-disabled-active-color: "var(--disabled-text-color)"
  paper-slider-disabled-secondary-color: "var(--disabled-text-color)"
  paper-slider-knob-color: "var(--accent-color)"
  paper-slider-knob-start-color: "var(--accent-color)"
  paper-slider-pin-color: "var(--accent-color)"
  paper-slider-secondary-color: "var(--secondary-background-color)"
  paper-tabs-selection-bar-color: "green"
  paper-toggle-button-checked-bar-color: "var(--accent-color)"
  paper-toggle-button-checked-button-color: "var(--accent-color)"
  paper-toggle-button-checked-ink-color: "var(--accent-color)"
  paper-toggle-button-unchecked-bar-color: "var(--disabled-text-color)"
  paper-toggle-button-unchecked-button-color: "var(--disabled-text-color)"
  paper-toggle-button-unchecked-ink-color: "var(--disabled-text-color)"
  primary-background-color: "#383C45"
  primary-color: "#5294E2"
  primary-text-color: "#FFFFFF"
  secondary-background-color: "#383C45"
  secondary-text-color: "#5294E2"
  sidebar-background-color: "var(--paper-listbox-background-color)"
  sidebar-icon-color: "rgba(255, 255, 255, 0.70)"
  sidebar-selected-icon-color: "var(--primary-color)"
  sidebar-selected-text-color: "var(--primary-text-color)"
  sidebar-text-color: "var(--primary-text-color)"
  slider-bar-color: "var(--disabled-text-color)"
  slider-color: "var(--primary-color)"
  slider-secondary-color: "var(--light-primary-color)"
  st-mode-active-background: "var(--dark-primary-color)"
  st-mode-background: "var(--primary-background-color)"
  state-icon-active-color: "#FDD835"
  state-icon-color: "#44739e"
  state-icon-unavailable-color: "var(--disabled-text-color)"
  switch-checked-color: "var(--paper-toggle-button-checked-button-color)"
  switch-unchecked-button-color: "var(--disabled-text-color)"
  switch-unchecked-color: "var(--disabled-text-color)"
  switch-unchecked-track-color: "var(--disabled-text-color)"
  table-row-alternative-background-color: "#3E424B"
  table-row-background-color: "#353840"
  text-primary-color: "var(--primary-text-color)"
  toggle-button-color: "var(--primary-color)"

Compact Header Theme:

compact-header_1:
    card-mod-root-yaml: |
  
      ha-app-layout$: |
          /* This corrects top padding for the view. */
          #contentContainer {
            padding-top: 48px !important;
          }
          
      paper-tabs$: |
          /* This hides tab scroll arrows, remove next 3 lines if you want them. */
          paper-icon-button {
            display: none;
          }
          /* This makes it so arrows are only displayed when needed. */
          .not-visible {
            display: none;
          }
      .: |

        /* This shifts the unused portion of the header up. */
        app-toolbar:not([class="edit-mode"]) {
          margin-top: -64px;
          z-index: 1;
        }

        /* This shifts the voice button back down. */
        app-toolbar:not([class="edit-mode"]) mwc-icon-button[label] {
          /* Uncomment line below to hide voice button. */
          display: none;
          margin-top: 110px
        }

        /* This shifts the options button back down. */
        app-toolbar:not([class="edit-mode"]) ha-menu-button {
          /* Uncomment line below to hide options button. */
          display: none;
          margin-top: 110px
        }

        /* This leaves space for the buttons on the right of the tabs bar.
           Change 112px to 56px if you don't use voice icon. */
        paper-tabs {
            margin-right: 112px !important;
        }
        /* This corrects the sizing of the view. */
        #view {
          min-height: calc(100vh - 48px) !important;
        }

Results in:

2 Likes

That does not seem to work. I use a customized ā€˜clearā€™ theme:

clear_custom:
  # Background image
  #lovelace-background: 'center / cover no-repeat 

  # Colors
  text-color: '#636B75'                                                           # Grey text
  text-medium-color: '#8c96a5'                                                    # Medium grey text
  text-light-color: '#BAC0C6'                                                     # Light grey text
  accent-color: '#00a1ff'                                                         # Blue
  background-color: '#F7F8F9'                                                     # Light grey background
  background-color-2: '#F4F5F6'                                                   # Light grey background
  background-card-color: 'rgba(255,255,255,0.90)'                                  # White background
  border-color: '#E8E8E8'                                                         # Light grey border

  # Header
  primary-color: 'var(--text-color)'                                              # Background
  text-primary-color: '#FFF'                                                      # Text

  # Left Menu
  paper-listbox-background-color: 'var(--background-color)'                       # Background

  # UI
  paper-card-header-color: 'var(--text-color)'                                    # Title in settings
  primary-background-color: 'var(--background-color)'                             # Background color (also title background in left menu)

  # Card
  paper-card-background-color: 'var(--background-card-color)'                     # Background
  dark-primary-color: 'var(--text-color)'
  primary-text-color: 'var(--text-color)'
  paper-listbox-color: 'var(--text-color)'
  light-primary-color: 'var(--text-light-color)'
  secondary-text-color: 'var(--text-medium-color)'
  disabled-text-color: 'var(--text-light-color)'
  paper-dialog-button-color: 'var(--text-color)'
  secondary-background-color: 'var(--background-color-2)'                         # Background more info title
  ha-card-border-radius: "15px"
  #ha-card-background: 'var(--background-card-color)'  
  
  # Icons
  paper-item-icon-color: 'var(--text-light-color)'                                # Off
  paper-item-icon-active-color: 'var(--accent-color)'                             # On

  # Switches
  switch-checked-button-color: '#FFF'                                             # Knob On
  switch-unchecked-button-color: '#FFF'                                           # Knob Off
  switch-checked-track-color: '#0077FF'                                           # Background On
  switch-unchecked-track-color: 'var(--disabled-text-color)'                      # Background Off

  # Slider
  paper-slider-active-color: 'var(--accent-color)'                                # Line On
  paper-slider-container-color: '#e5e7ea'                                         # Line Off
  paper-slider-knob-color: 'var(--text-light-color)'                              # Knob On
  paper-slider-knob-start-color: 'var(--text-light-color)'                        # Knob Off

  # Shadows
  ha-card-box-shadow: 'inset 0px 0px 0px 1px var(--border-color)'

  # HACS
  hacs-badge-color: 'var(--accent-color)'                                         # New Badge
  hacs-status-installed: 'var(--text-color)'                                      # Installed Icon
  hacs-status-pending-restart: 'var(--text-light-color)'                          # Restart Icon
  hacs-status-pending-update: 'var(--accent-color)'                               # Update Icon
  
  #CUSTOM SP
  lovelace-background: 'center / cover no-repeat url("/local/images/achtergrond/huis_dag.jpg") fixed'
  tuin-background: 'center / cover no-repeat url("/local/images/achtergrond/tuin_dag.jpg") fixed'
  huis-background: 'center / cover no-repeat url("/local/images/achtergrond/huis_dag.jpg") fixed'
  card-mod-theme: clear_custom
  
  # Header
  #primary-color: 'rgba(10, 10, 10, 0.5)'
  
  app-header-background-color: 'rgba(0, 0, 0, 0.0)'
  app-header-text-color: 'rgba(255, 255, 255, 1)'
  
  # Header
  card-mod-theme: compact-header

In compact_header_theme.yaml:

compact-header:
  card-mod-root-yaml: |
    paper-tabs$: |
      .not-visible {
        display: none;
      }
      /*Uncomment this if you want the header on the bottom
      #selectionBar {
        bottom: unset !important;
      }
      */
    ha-app-layout$: |
      /* This corrects top padding for the view. */
      #contentContainer {
        /* Change this to 0px if you want the header on the bottom */
        padding-top: 48px !important;
      }
    ha-button-menu$mwc-menu$mwc-menu-surface$: |
      .mdc-menu-surface {
        margin: 10px;
        box-shadow: var(--ha-card-box-shadow, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12));
      }
    .: |
      /* This hides the unused portion of the header. */
      app-toolbar  {
        height: 0;
      }
      /* This forces background-color and text-color. */
      .edit-mode, app-header, app-toolbar {
        background-color: var(--primary-background-color) !important;
        color: var(--primary-text-color) !important;
      }
      /* Uncomment this if you want the header on the bottom
      app-header {
        top: calc(100vh - 60px) !important;
        bottom: 0 !important;
        transform: unset !important;
      }
      hui-masonry-view {
        padding-bottom: 60px !important;
      }
      */
      /* This gives the header in edit mode a different look from the standard header. */
      app-header.edit-mode {
        border-bottom: 2px var(--primary-color) solid;
        padding-bottom: 10px;
      }
      /* Make the color of the plus white instead of black. */
      #add-view ha-svg-icon {
        color: #EEE !important;
      }
      /* Bring voice button back down */
      app-toolbar:not([class="edit-mode"]) mwc-icon-button[label] {
        top: 0;
        right: calc(48px * 1);
        z-index: 2;
        position: absolute;
      }
      /* Bring help button back in */
      a[href="https://www.home-assistant.io/lovelace/"] > mwc-icon-button {
        right: calc(48px * 2);
        position: absolute;
        z-index: 2;
      }
      /* Bring close button back in */
      mwc-icon-button[title="Close"] {
        top: 0;
        left: 0;
        position: absolute;
        z-index: 2;
      }
      /* Bring add view button back in */
      mwc-icon-button#add-view {
        position: fixed;
        right: 48px;
      }
      /* Bring edit UI overflow menu back in */
      ha-button-menu {
        top: 0;
        right: 0;
        z-index: 2;
        position: absolute;
        /*Uncomment this out to hide the overflow menu
        display: none;
        */
      }
      /* Hide the title */
      app-toolbar > [main-title] {
        display: none;
      }
      /* Hide buttons that are taking up space, but invisible */
      menu-button[style="visibility: hidden;"] {
        display: none;
      }
      /* Bring sidebar button back in */
      ha-menu-button {
        z-index: 2;
        top: 24px;
      }
      /* Set margin on left to be smaller,
      and set the bar color to be the primary color
      instead of white */
      paper-tabs {
        --paper-tabs-selection-bar-color: var(--primary-color) !important;
        margin-left: 48px !important;
      }
      /* When not in edit mode, shrink the left margin */
      app-toolbar:not(.edit-mode) > div > paper-tabs {
        margin-left: 6px !important;
      }
      /* Color selected tabs */
      paper-tab[aria-selected="true"] > ha-icon {
        color: var(--primary-color) !important;
      }
      paper-tab[aria-selected="true"] {
        color: var(--primary-color) !important;
      }
      /* Styles for mobile */
      @media (orientation: portrait) {
        /* Hide sidebar button and keep room for the overflow menu button */
        paper-tabs {
          margin-left: 5px !important;
          margin-right: 48px !important;
        }
        /* Hide voice button */
        mwc-icon-button[label="Start spraak"] {
          display: none !important;
        }
        /* Hide sidebar button */
        ha-menu-button {
          display: none !important;
        }
      }
      /* Make help button have contrast */
      app-toolbar a {
        color: var(--primary-text-color) !important;
      }      

But it looks like this:

How to get a proper transparency?
Also, the bar now dissapears with scrolling. Any way to make it ā€˜stickyā€™?

Anyone know the cause of this?

Uncaught (in promise) TypeError: o is null
    setStyle card-mod.js:1
    _setTemplate card-mod.js:1
    async*set template card-mod.js:1
    y card-mod.js:1
    firstUpdated card-mod.js:5
    firstUpdated card-mod.js:5
    performUpdate app.a9501bd7.js:1
    _enqueueUpdate app.a9501bd7.js:1
    _requestUpdate app.a9501bd7.js:1
    initialize app.a9501bd7.js:1
    initialize app.a9501bd7.js:1
    w app.a9501bd7.js:1
    O app.a9501bd7.js:1
    F chunk.b78314dc93f493d4fbaf.js:3954
    _clone app.a9501bd7.js:1
    __commitTemplateResult app.a9501bd7.js:1
    commit app.a9501bd7.js:1
    a app.a9501bd7.js:1
    render app.a9501bd7.js:1
    update app.a9501bd7.js:1
    performUpdate app.a9501bd7.js:1
    _enqueueUpdate app.a9501bd7.js:1
    _requestUpdate app.a9501bd7.js:1
    initialize app.a9501bd7.js:1
    initialize app.a9501bd7.js:1
    w app.a9501bd7.js:1
    O app.a9501bd7.js:1
    F chunk.1a087cc2645eb2d666bc.js:112
    value chunk.b78314dc93f493d4fbaf.js:44579
    value chunk.b78314dc93f493d4fbaf.js:44579

Edit: Looks like you canā€™t do shadow root styling for specific cards anymore.

Thanks for that. I was actually wondering that.
If I define a variable in the card_mod theme will that override the main theme?
I was hoping that card-mod theme styling would have this functionality but itā€™s certainly not documented to enable that. So if I get it working I might do a PR for the wikiā€¦

No, it only works for card-mod stuff, you canā€™t set anything else like primary-color. You can set a variable using card-mod-card though. Also wikis donā€™t use PRs, check the wiki, thereā€™s a new page for how to do it.

Seems to conflict with :slight_smile:

I am having a hard time trying to work out how to convert my old popup-card styles using card-mod v2 and themes. They all worked fine using older versions but moving to 2.0 has removed all the styles.

I am calling the pop-ups using the basic more-info replacement action, but no stylings seem to be applied to the pop-up cards, which I am wondering is because they are in a vertical stack.

How I am calling the pop-ups, where the template action for the button is ā€˜more-infoā€™:

popup_cards:
  !include ../popup-cards/tech-popup-card.yaml
      - type: custom:decluttering-card
        template: regular_button_card
        variables:
          - entity: sensor.disk_free_home
          - name: Home Assistant
          - icon: home-assistant

Here is what it looks like today:

A snippet of code for the popup is below. I have tried using a class in some cards and embedding inline in others to test them out, but nothing seems to work! Can someone please advise the best way to get full transparently for the more-info pop-up card with a round border, and make all the cards inside transparent except the buttons? I have this style throughout my full theme so ideally embedding it in the theme would be perfect :slight_smile:

  sensor.disk_free_home:
    title: Home Assistant
    style:
      border-radius: 12px
      background: var(--homekit-transparent)
    card:
      type: vertical-stack
      style: |
        ha-card {
          border-radius: 12px;
          background: var(--homekit-transparent);
        }
      cards:
        - type: horizontal-stack
          cards:
            - type: 'custom:button-card'
              color_type: blank-card
              styles:
                card:
                  - width: 10px
            - type: custom:bar-card
#              style: |
#                  ha-card {
#                    border-radius: 12px;
#                    box-shadow: none;
#                    background-image: none;
#                    background-color: transparent;
#                    color: var(--primary-line-color)
#                  }
              class: inline-card
              title: Disk
              entity: sensor.disk_use_percent_home
              unit_of_measurement: '%'
              severity:
              - value: 70
                color: var(--primary-line-color)
              - value: 85
                color: var(--secondary-line-color)
              - value: 95
                color: var(--tertiary-line-color)
              - value: 100
                color: '#F5AB98'
            - type: 'custom:button-card'
              color_type: blank-card
              styles:
               card:
                - width: 10px    
        - type: custom:button-card
          color_type: blank-card
          styles:
            card:
              - height: 5px
        - type: horizontal-stack
          cards:
            - type: 'custom:button-card'
              color_type: blank-card
              styles:
                card:
                  - width: 10px
            - type: custom:bar-card
#              style: |
#                  ha-card {
#                    border-radius: 12px;
#                    box-shadow: none;
#                    background-image: none;
#                    background-color: transparent;
#                    color: var(--primary-line-color)
#                  }
              class: inline-card
              title: CPU
              entity: sensor.processor_use
              unit_of_measurement: '%'
              severity:
              - value: 50
                color: var(--primary-line-color)
              - value: 75
                color: var(--secondary-line-color)
              - value: 90
                color: var(--tertiary-line-color)
              - value: 100
                color: '#F5AB98'
            - type: 'custom:button-card'
              color_type: blank-card
              styles:
               card:
                - width: 10px    
        - type: custom:button-card
          color_type: blank-card
          styles:
            card:
              - height: 5px
        - type: horizontal-stack
          cards:
            - type: 'custom:button-card'
              color_type: blank-card
              styles:
                card:
                  - width: 10px
            - type: custom:bar-card
              style: |
                  ha-card {
                    border-radius: 12px;
                    box-shadow: none;
                    background-image: none;
                    background-color: transparent;
                    color: var(--primary-line-color)
                  }
              title: Memory
              entity: sensor.memory_use_percent
              unit_of_measurement: '%'
              severity:
              - value: 50
                color: var(--primary-line-color)
              - value: 75
                color: var(--secondary-line-color)
              - value: 90
                color: var(--tertiary-line-color)
              - value: 100
                color: '#F5AB98'
            - type: 'custom:button-card'
              color_type: blank-card
              styles:
               card:
                - width: 10px    
        - type: entities
          show_header_toggle: false
#          style: |
#            ha-card {
#              border-radius: 12px;
#              border-style: hidden;
#              box-shadow: none;
#              background: none;
#              --paper-item-icon-color: var(--primary-text-color);
#            }   
          class: inline-card
          entities:
          - entity: sensor.home_assistant_v2_db
            style: |
              :host {
                --paper-item-icon-color: var(--primary-line-color);
              }
            name: DB File Size
          - entity: sensor.home_assistant_log
            style: |
              :host {
                --paper-item-icon-color: var(--primary-line-color);
              }
            name: Log File Size
          - entity: sensor.hacs
            style: |
              :host {
                --paper-item-icon-color: var(--primary-line-color);
              }
            name: HACS Updates
          - entity: sensor.version_current
            style: |
              :host {
                --paper-item-icon-color: var(--primary-line-color);
              }
            name: Hassio Version Installed
          - entity: sensor.version_available
            style: |
              :host {
                --paper-item-icon-color: var(--primary-line-color);
              }
            name: Hassio Version Available
        - type: horizontal-stack
          cards:
            - type: 'custom:button-card'
              color_type: blank-card
              styles:
                card:
                  - width: 10px

And in my theme I have:

  homekit-light:
#    background-image: 'center / cover no-repeat url("/local/backgrounds/30.jpeg") fixed'
    # TEST
    card-mod-theme: homekit-light
    card-mod-card: |
      ha-card.inline-card {
        border: none;
        box-shadow: none;
        --ha-card-background: rgba(0, 0, 0, 0);
      }

You really should switch to browser-mod.

Thanks for the feedback, I am using browser-mod but perhaps not in the best way?

I am using it like this I thought: https://github.com/thomasloven/hass-browser_mod#replacing-more-info-dialogs

Sorry, thought you were using a JS module called popup_cards. :man_facepalming:

1 Like

Ok Im a complete idiot. Turns out I had the wrong resource url for an older version of card mod! Can now see styles working again so Iā€™ll play around with it :slight_smile:

I tried again

card-mod-theme: Google Light Theme
  card-mod-root-yaml: |
    paper-tabs$: |
      /* This hides tab scroll arrows */
      paper-icon-button {
        display: none;
      }
    "ha-app-layout":
      $: |
        /* This makes sure the bottom scrollbar isn't hiding cards */
        #contentContainer {
          padding-top: 0px !important;
          padding-bottom: 48px !important;
        }
    .: |
      app-toolbar {
        height: 0;
      }
      app-toolbar > [main-title] {
        display: none;
      }
      .edit-mode, app-header, app-toolbar {
        background-color: var(--primary-background-color) !important;
        color: var(--primary-text-color) !important;
      }
      app-header {
        top: calc(100vh - 48px) !important;
      }
      ha-button-menu {
        top: 0;
        right: 0;
        z-index: 2;
        margin-left: 5px;
        position: absolute;
        display: none;
      }
      menu-button[style="visibility: hidden;"] {
        display: none;
      }
      ha-menu-button {
        z-index: 2;
        top: 24px;
        color: var(--app-header-text-color) !important;
      }
      paper-tabs {
        color: var(--app-header-text-color) !important;
        --paper-tabs-selection-bar-color: var(--primary-color) !important;
      }
      paper-tab[aria-selected="true"] {
        color: var(--primary-color) !important;
      }

On laptop view:
my top banner is gone where i want my messages and menu button + i want to get rid of 2 tabs ā€œstijn and kimā€

on my mobile, some things are wrong

on the main page (not the other pages) the bottom header moves up when i scroll

afbeelding html code maken

You can see also the home and menu button are at the same place :frowning:

Help would be appreciated