Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use own material design icons with materializecss?

I need to know how to add own mdi icons in custom classes. the provided mdi classes provided don't meet my expectations.

How can i add those and use them like the default one

<i class="mdi-image-facebook"></i>
<i class="mdi-image-linkedin"></i>

Thanks in advance

like image 749
Hassam Abdelillah Avatar asked Jun 10 '15 12:06

Hassam Abdelillah


People also ask

Can I use material design icons?

The icons are available for download in SVG or PNGs, formats that are suitable for web, Android, and iOS projects or for inclusion in any designer tools.

Can I use material design icons for free?

Material Design Icons are available for free on the official Material Design Icons website. You can use them in your Android apps, websites, and designs, and there are no restrictions on how you can use them.

How do I add material icons?

To embed Google Icons in your HTML web pages you have to add the link of material-icons font library in the <head> section of your HTML file and then add the class material-icons in the <i> or <span> tag of the <body> section along with the name of the icon.

How do I use material icons on my website?

Using the Icon Google's Material Icons provides a long list of icons. Choose any one of them and add the name of the icon class to any HTML element within the < body > tag. In the following example, we have used the icon named accessibility that belongs to the action category.


1 Answers

Well, the is an alternative solution provided by this website. It's include preety much a good number of icons such as social buttons.

http://materialdesignicons.com/getting-started

You just have to add this css link to get the icons and add them as classes

<link href="css/materialdesignicons.min.css" media="all" rel="stylesheet" type="text/css" />

and

<i class="mdi mdi-facebook-box"></i>  <!-- facebook box -->
like image 50
Hassam Abdelillah Avatar answered Sep 28 '22 08:09

Hassam Abdelillah