@title Getting Started @previewBell(){ } @previewOverlay(){ } @download(text, url){ } # @title There are many different ways you can consume the Material Design Icons in your projects or sites. Below are examples for various platforms. ## Web Font @download(Download the Web Font, https://github.com/Templarian/MaterialDesign-Webfont/archive/master.zip) For those targetting the web your best option is to use the web font (bower `bower install mdi` or npm `npm install mdi`). Files should match the file structure below. ```text File Structure fonts /materialdesignicons-webfont.eot /materialdesignicons-webfont.svg /materialdesignicons-webfont.ttf /materialdesignicons-webfont.woff /materialdesignicons-webfont.woff2 css /materialdesignicons.min.css - Minified CSS /materialdesignicons.min.css.map - Developer Tools Map preview.html - Preview the font files ``` To reference the icons add the line below into the `head` tag. ```html Reference the CSS ``` To use the icons inline use the syntax below. Preview these in the `preview.html` provided. ```html Web Font Example ``` @previewBell() ## Inline SVG The web font is not the only way to use the icons. They can also be included inline with the `svg` tag. Right click any icon on the site and click the 'View SVG' item in the context menu for example code. ```html SVG Inline Exmaple ``` SVGs like the web font can be overlayed and combined. ```html Overlay Example ``` @previewOverlay() SVGs can also be styled with CSS similar to HTML elements and assigned classes. ```css Examples svg.example:hover path { fill: #900; fill-opacity: 0.5; } ``` ## WPF / Windows / Windows Phone Windows uses the vector XAML format. Right click any icon on the site and click the "View XAML" item in the context menu. ## Polymer @download(Download 'mdi.html', /api/download/polymer/38EF63D0-4744-11E4-B3CF-842B2B6CFE1B) The `mdi.html` contains all the icons provided on the site. Use inline with the following code. ```html Polymer Example ``` Learn more about custom icons in the [polymer documentation](https://www.polymer-project.org/docs/elements/icons.html#roll-your-own) ## Grunt `grunt-webfont` Creating subsets of the font can be done with the [grunt-webfont](https://github.com/sapegin/grunt-webfont) package. ... explain step by step here... ## License These fonts and designs are covered by the [license.txt](https://github.com/Templarian/MaterialDesign/blob/master/license.txt) located in the root of the git repo on GitHub.