Do Icons scale automatically based on widget size?

For e.g. if I specify a widget to be (2x2), will any icons defined for it scale automatically to fill the additional space? Or should we use the icon_x_style parameter to set the font-size accordingly.

P.S: It would be nice if the icon can scale automatically. If not, can I ask for that as a feature request? :slight_smile:

They do not, but I wish that they did :wink: Consider it as a Feature Request that I also have requested :wink:

The problem with making things scale, is that making things align goes out of the window which is another issue entirely …

Would be nice, but in the mean time, like you said, you can get it looking nice just by adjusting the styles. This is one of my tiles for a dash I made for my kindle paperwhite.

fan:
  widget_type: switch
  title: Fan
  entity: switch.fan
  icon_on: mdi-fan
  icon_off: mdi-fan
  widget_style: "background: white"
  title_style: "color: black; font-size: 360%; font-weight: bold;"
  icon_style_active: "color: grey; font-size: 800%; margin-top: 70px;"
  icon_style_inactive: "color: black; font-size: 800%; margin-top: 70px;"

Thanks @aimc and @azeroth12

Yep, I have used the icon styling successfully. Will continue to use styles to pretty things up.