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

Setting certain fill colors based on sun state #273

Open
backslashV opened this issue Feb 13, 2021 · 2 comments
Open

Setting certain fill colors based on sun state #273

backslashV opened this issue Feb 13, 2021 · 2 comments

Comments

@backslashV
Copy link

Hi,
I'd like to set some fill colors differently based on the sun state. How can I assign color values in the typescript portion and access them in css? I can get the sun state in typescript and make color decisions based on that but don't know how I can access them in the css portion.

Thanks

@ciotlosm
Copy link
Owner

Can you post your example with sun state ? Ideally you can just add a class based on the sun, and override the colors with the extra class in css.

@backslashV
Copy link
Author

On second thought I am not sure if I can get entity values in typsecript. Please let me know if it's feasible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants