[Article] Un beau dashboard, tout simplement

Pour ça, il me semble bien que c’est déjà dans les tuyaux… j’ai vu passer des trucs je crois, ce serrait peut être même déjà faisable via les variables suivantes:

  • dans un thème:
ha-card-border-radius: 4px
ha-tile-icon-border-radius: 4px
ha-card-features-border-radius: 4px
  • dans du card_mod :
--ha-card-border-radius: 4px;
--ha-tile-icon-border-radius: 4px;
--ha-card-features-border-radius: 4px;

Le PR de piitaya qui en parle: Add themes variables to tile card to change border radius by piitaya · Pull Request #26999 · home-assistant/frontend · GitHub

Il y a aussi ce PR sur les font: Add themes variables to tile card to change font appearance by jm-cook · Pull Request #27092 · home-assistant/frontend · GitHub

  • dans un thème:
# primary font 
ha-tile-info-primary-font-size: 1rem
ha-tile-info-primary-font-weight: 500
ha-tile-info-primary-color: steelblue
# secondary font
ha-tile-info-secondary-font-size: 2rem
ha-tile-info-secondary-font-weight: 400
ha-tile-info-secondary-color: red

[edit: ça marche !!]