Themes for tile card and other cards #27051
Replies: 3 comments 2 replies
-
I had a poke around in the code for tiles and this is what I found:
Why? Its non-intuitive to change the font size (but just about possible to theme) . Its not possible to have different colours for primary and secondary card info. Something like the following which would give super flexibility but not break existing dashboards?
|
Beta Was this translation helpful? Give feedback.
-
Hey @jm-cook, |
Beta Was this translation helpful? Give feedback.
-
I introduced icon-border-radius variable last week (#26999). I'm fine with adding variables that start with : |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I look forward to the day when I can use a theme to control the appearance of the tile card like you can with the mushroom custom cards, without all that messing around with card-mod.
I don’t like using card-mod because it doesn’t always work properly when casting, requires some intimate knowledge of css and using developer tools on the front end. I haven’t found a good way, or any way, to configure a theme for tiles without using card-mod. I think of card-mod as being a way to achieve some look, font, colour or whatever, while we wait for that feature to be standard.
Here is a mushroom card with user assigned font sizes and colour through my own theme for mushroom:
With these settings in the mushroom theme:
It doesn't seem to be possible to achieve the same with a tile card atm. This is the nearest I can get after resorting to card-mod:
(In addition IMO all standard cards could benefit from a common style option)
Beta Was this translation helpful? Give feedback.
All reactions