piitaya / lovelace-mushroom-themes

Additional themes for Lovelace Mushroom Cards 🍄
Apache License 2.0
245 stars 19 forks source link

[Bug]: Using my own color variable from frontend theme #19

Closed chertvl closed 1 year ago

chertvl commented 2 years ago

Current Behavior

So, we have specific mushroom-card palette in theme.yaml, it looks like: white: 255, 255, 255 while all whole cards (and HA GUI) uses white: rgb(255,255,255)

We need a way to use variables like: color: var(--white), but now we cant do it. I tried set "white" in theme.yaml as rgb(), rgba(), #hex. No way to use "var" in mushroom-cards for all of them, card waiting for "255,255,255" format only (for var), or hexa color #ffffff directly in card config.

I have my own list of colors in theme.yaml wich I using everywhere, and rly I dont want to copy-paste one more list in specific mushroom format.

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:
- Node:
- Version:
- Hassio:

Anything else?

No response

piitaya commented 2 years ago

For now, it's due to a css limitation. But I plan to improve the theme color to use hexa code instead of rbg values. I will move the issue to https://github.com/piitaya/lovelace-mushroom-themes