npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@whaaaley/material-icons-scss

v4.0.3

Published

Material design icon functions for SCSS

Readme

material-icons-scss

Material design icon functions for SCSS

This project contains and generates SCSS functions that output SVG Data URLs using SVGs from the official google/material-design-icons repository, optimized using SVGO and this project.

Notice

You can see all the current icons in their data URL form at the following locations.

Install

$ npm i @whaaaley/material-icons-scss

Setup

If you're using the dart-sass CLI I recommend using the --load-path flag set to node_modules. Load paths add additional paths for Sass to look for stylesheets.

$ sass src/app.scss public/app.min.css --load-path=node_modules

If you're using dart-sass's JavaScript API this is called includePaths.

const css = sass.renderSync({
  file: 'src/app.js',
  includePaths: ['node_modules']
})

Usage

First, import a stylesheet of the icon style you'd like to use. Only import one of the following.

The icons in stable are the 4.0.0 icons only whereas the icons in extended include all the icons from 4.0.0 plus all the icons seen on Google fonts. Extended icons have not stabilized and may be subject to change.

You can find a list of all available extended icons, styles, and sizes on Google Fonts.

@import '@whaaaley/material-icons-scss/stable/filled';
@import '@whaaaley/material-icons-scss/stable/outlined';
@import '@whaaaley/material-icons-scss/stable/round';
@import '@whaaaley/material-icons-scss/stable/sharp';
@import '@whaaaley/material-icons-scss/stable/twotone';

@import '@whaaaley/material-icons-scss/extended/filled';
@import '@whaaaley/material-icons-scss/extended/outlined';
@import '@whaaaley/material-icons-scss/extended/round';
@import '@whaaaley/material-icons-scss/extended/sharp';
@import '@whaaaley/material-icons-scss/extended/twotone';

Next, create an icon data URL by using one of the icon functions.

Icon function names are prefixed with ic, names are kebab cased, and sizes can be 18px, 20px, or 24px.

ic-name-size($color)

In this example, I'm storing the SVG data URL in the variable $icon-menu then using that variable in the background URL function.

Input:

@import '@whaaaley/material-icons-scss/style/filled';

$red: #FF0000;
$icon-menu: ic-menu-24px($red);

.foobar {
  width: 24px;
  height: 24px;
  background: url($icon-menu) center no-repeat;
}

Output:

.foobar {
  width: 24px;
  height: 24px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="%23f00" d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>') center no-repeat;
}

How to build

This builds both stable and extended icon sets and demo files.

Notice: Running update_repo.py can take over 2 hours to download all the files.

$ cd icons/stable
$ git clone https://github.com/google/material-design-icons.git
$ cd ..
$ cd extended
$ git clone https://github.com/google/material-design-icons.git
$ cd material-design-icons/update
$ pip3 install -r requirements.txt
$ python3 update_repo.py
$ cd ../../..
$ make optimize
$ make build