iantrich / restriction-card

🔒 Apply restrictions to Lovelace cards
MIT License
254 stars 22 forks source link

theme variables #81

Closed niighthawk closed 4 months ago

niighthawk commented 1 year ago

Can you show how to use the theme variable please I want to change icon color in those 4 variables?

I already have the Card mod working, but cant figure how to change the Lock color in your hac

-restriction-regular-lock-color -restriction-success-lock-color -restriction-blocked-lock-color -restriction-invalid--color

niighthawk commented 1 year ago

like this ?

style: | restriction-regular-lock-color { primary-text-color: red; } or this style: | restriction-regular-lock-color { color: red; }

ildar170975 commented 1 year ago

Go to community card-mod thread - 1st post - link at the bottom - styles for restriction-card

niighthawk commented 1 year ago

Okay I found your code, can't manage to make it work in my code... heres my code, can you help me to figure where I should put it ? I want REGULAR LOCK to be BLACK .. Thanks :)

`type: custom:restriction-card restrictions: pin: text: USER CODE code: 1234 block: text: PLEASE SEE ADMIN exemptions:

ildar170975 commented 1 year ago

Check the code you posted.

niighthawk commented 1 year ago

I dont see any change in my code I posted ?

ildar170975 commented 1 year ago

I mean - see HOW you posted your code, it is absolutely not readable.

niighthawk commented 1 year ago

I used the CODE bracket .. not my fault if it showing that bad ... that why I post an image to give you a better view of my code ...

ildar170975 commented 5 months ago

@niighthawk

  1. Information about how to change CSS theme variables in card-mod was provided.
  2. Posted code does not contain a suggested card-mod code.

Is this issue still valid? Have you sorted this out?

ildar170975 commented 4 months ago

No feedback from OP, closing.