Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Template Card - Add Theming Options #1514

Open
2 tasks done
dafunkydan opened this issue Aug 24, 2024 · 0 comments
Open
2 tasks done

[Feature]: Template Card - Add Theming Options #1514

dafunkydan opened this issue Aug 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dafunkydan
Copy link

Requirements

  • I have updated Mushroom to the latest available version
  • I did a search to see if there is a similar issue or if a pull request is open.

Is your feature request related to a problem?

While i really like the Concept of limiting Features to provide a structured Design, there are limits thats are frustrating me while developing my own Design. With the Template Card i can e.g. change the Icon or its Color, but not its size.
If a Device is idle, want to have the Primary Text in Lightgray. If my Washing Mashine is tumbling i want to animate the icon.

Theming allows that, but only static/for all cards. card_mod can do it on individual basis, but it is quite hard to maintain, always bears the chance for a Break.

Describe the solution you'd like

I dont suggest adding thousands of Options, that would destroy the General UI/UX Feeling.

I thought about another Textfield in the Template Card, where on can override the Theming Settings on a Card Basis.
So, if that field is empty, the general Behaviour takes place. But i could add e.g.

mush-card-primary-color: lightgray

to change the color. Even further, the same way Jinja can be used for the other fields, i could use

{% if states(entity) == 'off' %}
  mush-card-primary-color: lightgray
{% endif %}

That would give the user a way to significantly deeper customize the Template, while keeping the UI clean and tidy (only one more Line would be needed). The whole Set of Mushroom Variables is already defined and described, so it just needs to get referenced.

Describe alternatives you've considered

  • Card Mod

    • Not Supported
    • May Break any Time
    • Not Easy to set up, harder to Maintain
  • Theming

    • Not for Individual Cards
    • No Dynamical Change

Additional context

No response

@dafunkydan dafunkydan added the enhancement New feature or request label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant