Mushroom Cards - Build a beautiful dashboard easily 🍄 (Part 2)

Assuming you are using mushroom-template-card, and can use card-mod, you can define flex size basis to the icon and info and then align the info text. The mushroom-template-card uses a tile with 6 columns, so I have used 1 and 5 for the flex paramaters, but you can play around with flex (flex-grow / flex-shrink / flex-basis)

type: custom:mushroom-template-card
primary: Hello, {{user}}
secondary: How are you?
icon: mdi:mushroom
features_position: bottom
card_mod:
  style: |
    ha-tile-icon {
      flex: 1;
    }
    ha-tile-info {
      flex: 5;
      text-align: center;
    }

1 Like