commit | 71dc8ef81ef7ae3a9b6d8fde3263f64b2eab9c3f | [log] [tgz] |
---|---|---|
author | Josh Estelle <jestelle@google.com> | Wed May 13 04:57:14 2015 |
committer | Josh Estelle <jestelle@google.com> | Wed May 13 04:57:14 2015 |
tree | 2f580a2133e1b206f571120035a168a22b361c54 | |
parent | 0554bec86d4883ab32622ff3b47121d856239345 [diff] |
Bump version number
Material Design Icons are the official open-source icons featured in the Google Material Design specification.
A live preview of the icon set is available.
You have a few options for getting the icons.
Grab the latest stable zip archive (~57MB) of all icons or the bleeding-edge version from master.
Install the icons using the Bower package manager.
$ bower install material-design-icons
You can also find all the icons on npm.
$ npm install material-design-icons
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.
In general, an icon category (e.g action
) will include the following directories, containing multiple resolutions of our icons.
Decide on the icon resolution required for your project and copy, then reference the icons you wish to use.
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 svg-sprite
and css-sprite
.
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
:
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.
Similarly, to use an SVG spritesheet, reference the stylesheet for the icon category, then include the icon definition in your markup.
E.g: to use one of the play icons in svg-sprite-av
, reference the stylesheet:
<link href="svg-sprite/svg-sprite-av.css" rel="stylesheet">
Create an element which will use the icon as a background:
<div></div>
Next, make sure to set a dimension for the icon. This can either be done inline or via a class. We'll use a class for this example:
<style> .svg-ic_play_circle_outline_24px-dims { width: 24px; height: 24px; } </style>
Finally, set the dimension and specific icon svg-ic_play_circle_outline_24px
, which you can get from the above stylesheet.
<div class="svg-ic_play_circle_outline_24px svg-ic_play_circle_outline_24px-dims"></div>
If you wish to use the icon set with Polymer, we recommend consuming them via the <core-icons>
element.
All icons are released under an Attribution 4.0 International license.