Name | Last Update | Last Commit ad8543d2ec0 – Add section on CSS Sprites | history |
---|---|---|---|
action | |||
alert | |||
av | |||
communication | |||
content | |||
device | |||
editor | |||
file | |||
hardware | |||
image | |||
maps | |||
navigation | |||
notification | |||
social | |||
sprites | |||
toggle | |||
LICENSE | |||
README.md | |||
bower.json | |||
index.html | |||
package.json |
Material Design Icons
Material Design Icons are the official open-source icons featured in the Google Material Design specification.
What's included?
- SVG versions of all icons in both 24px and 48px flavours
- SVG and CSS sprites of all icons
- 1x, 2x icons targeted at the Web (PNG)
- 1x, 2x, 3x icons targeted at iOS (PNG)
- Hi-dpi versions of all icons (hdpi, mdpi, xhdpi, xxhdpi, xxxhdpi) (PNG)
Getting Started
You have a few options for getting the icon set.
Download the Zip
Grab the latest zip archive of all icons.
Bower
Install the icons using the Bower package manager.
$ bower install material-design-icons
npm
You can also find all the icons on npm.
$ npm install material-design-icons
Structure
Icons
Spritesheets
Material Design icons come with SVG and CSS sprites for each category of icon we include. These can be found in the sprites
directory, under the svg-sprite
and css-sprite
sub-directories.
Using CSS Sprites
To use a CSS spritesheet, reference the stylesheet for the icon category you wish to use, then include the icon definition in your markup.
E.g: to use one of the play icons in css-sprite-av
, we would do the following:
Reference the stylesheet:
<link href="css-sprite/sprite-av-black.css" rel="stylesheet">
Create an element which will use the icon as a background:
<div></div>
Add a class referencing the icon
spritesheet and specific icon icon-ic_play_circle_outline_black_24dp
, which you can get from the above stylesheet.
<div class="icon icon-ic_play_circle_outline_black_24dp"></div>
That's it!
Don't forget to publish the corresponding CSS and SVG/PNG files when deploying your project.
Usage
Take a look at the included index.html
file for a preview of all icons included in the set. You are free to use the icons in the way that makes most sense to your project.
Licence
All icons are released under an Attribution-ShareAlike 4.0 International license.