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 Request : Material Design icon #182

Closed
hot22shot opened this issue Jan 15, 2021 · 5 comments
Closed

Feature Request : Material Design icon #182

hot22shot opened this issue Jan 15, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@hot22shot
Copy link

Hi,

Great app ! I wonder if it would be possible to also use the icons from Material Design (https://materialdesignicons.com/) ?

Thx

@oldviking
Copy link

That would be really cool, because not every icon is free on the solution now.

@bastienwirtz bastienwirtz added the enhancement New feature or request label Feb 16, 2021
@bastienwirtz
Copy link
Owner

Hi there,
Thanks for contributing! Having Material icons would be great, I will look into it. We should have an option to use different icon set (and avoid loading unused icon library). I'll keep you posted here!

Best

@dkgof
Copy link

dkgof commented Feb 25, 2021

It does kinda work already, if you add the webfont css from material design as a custom stylesheet in the config:

stylesheet:
  - "https://cdn.jsdelivr.net/npm/@mdi/font@5.9.55/css/materialdesignicons.min.css"

And then you can use it for icons:

icon: 'mdi mdi-home

Of course this loads the entire css + webfont, which is around 300kb I think.

@hot22shot
Copy link
Author

It does indeed work !

@xbmcnut
Copy link

xbmcnut commented Jun 24, 2022

👍 Thank you. As a Home Assistant user I was much more comfortable using MDI. Works a treat. Noted that code should be this though:

icon: "mdi mdi-home"

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

5 participants