🔹 Card-mod - Add css styles to any lovelace card

Important message

Since this is popping up more and more here, in discord and on github let me make a clarification to everyone:

Do not use mod-card unless absolutely necessary.

mod-card is the final, all-other-options-exhausted, I’m-about-to-cry-it-must-be-possible-somehow, last resort if nothing else works.

The first line under the “Usage” seciton of the readme states

This is not a new card. Instead it changes the way pretty much any other card works .

That means it should not be used as a card, I.e. if you write type: followed by anything other than the type of the card you actually want to display you’re likely doing it wrong.

Of course, mod-card wouldn’t exist unless there were some cases where it was in fact needed. However, while the list in the readme says “among other”, it’s actually pretty darn exhaustive.
And even for the cards in that list, it’s not necessary most of the time, and not in the way that you think (mod-card is for things like adding a border around an entire stack of cards. If you want to mod the cards in the stack - don’t use mod-card.)

Do not use mod-card unless absolutely necessary.

3 Likes