Code Monkey home page Code Monkey logo

material-design-icons-svg's Introduction

Material Design Icons (SVG for web)

Material Design Icons, svg version, bundled and ready for web.

Getting Started

The Material Design icon from Google, font version, is not updated with all icons (see this bug).

Since webfonts are no longer the best solution for icons I created a bundle with all SVG for an easy web usage.

Using icons on page

You can use the CVS bundle as suggested in this Medium article.

Copy svg files from dist folder where you prefer.

First declare a general style for icons

.mdi {
  background-color: transparent;
  fill: currentColor;
  width: 24px;
  height: 24px;
}

Then inser the icon in your page (replace menu with your desired icon)

<svg class='mdi' role="img" title="menu">
    <use xlink:href="mdi.svg#menu"></use>
</svg>

Using as CSS background

To use icon ass css background add '-view' to fragment

Example:

.breadcrumb-item + .breadcrumb-item::before {
    content: '';
    display: inline-block;
    fill: currentColor;
    color: #000;
    width: 24px;
    height: 24px;
    background: url('mdi.svg#chevron_right-view') no-repeat;
}

Partial bundle

SVG file mdi.svg contains all icons. If your page use only icons from a determinate categories is more efficient to use the specific bundle:

Es: use maps.svg for icon directions_bike

<svg class='material-design-icons' role="img" title="directions_bike">
    <use xlink:href="maps.svg#directions_bike"></use>
</svg>

Build yourself

Quite easy.

Clone repository, and download deps.

yarn install

Build it.

yarn build

Contributor

Fabiano Taioli < [email protected] >

Licence

Apache License Version 2.0

material-design-icons-svg's People

Contributors

ftaiolivista avatar

Stargazers

Jordi Pakey-Rodriguez avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.