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 🙏

© 2024 – Pkg Stats / Ryan Hefner

no-mui-icons-two-tone

v1.0.0

Published

Two tone Material UI Icons repackaged without MUI dependencies

Downloads

11,838

Readme

no-mui-icons

Icons from the Material UI library that are not dependent on Material UI code.

They can be used in any React application with any UI framework. I'm personally a fan of Radix UI and Qwik but they will work with any React compatible framework.

Usage

The icons are distributed in five packages corresponding to the five icon styles.

npm install no-mui-icons-filled
npm install no-mui-icons-outlined
npm install no-mui-icons-rounded
npm install no-mui-icons-sharp
npm install no-mui-icons-two-tone

Then import and use them like you would any other React component.

import { ThumbUpFilledIcon } from 'no-mui-icons-filled';
import { EmailSharpIcon } from 'no-mui-icons-sharp';

function UseIcons() {
  return (
    <div>
      <ThumbUpFilledIcon />

      <EmailSharpIcon
        className={styles.iconClass}
        aria-label="Send email"
        role="button"
      />
    </div>
  );
}

All attributes passed to the icon are passed through to the <svg /> element. No additional markup is rendered, but additional CSS classes are added. Described below.

Styling

Every icon accepts a custom className attribute that is passed to the <svg /> element.

<EmailSharpIcon className="sendEmailIcon" />
.sendEmailIcon {
  width: 40px;
  height: 40px;
  fill: blue;
  cursor: pointer;
}

Additionally every icon has three pre-defined CSS classes that can be used to customize all icons, all icons of a particular style, or all instances of that particular icon.

  • no-mui-icon is added to every icon.
  • no-mui-[style]-icon where [style] is the appropriate icon style: filled, outlined, sharp, rounded, or two-tone.
  • no-mui-[icon-name]-[style]-icon where [icon-name] is the kebab-case name of the icon and [style] is one of the previously mentioned styles such as no-mui-thumb-up-filled-icon or no-mui-email-sharp-icon.
<EmailSharpIcon />
.no-mui-icon {
  width: 40px;
  height: 40px;
}

.no-mui-filled-icon {
  fill: blue;
}

.no-mui-email-sharp-filled-icon {
  fill: green;
}

Browse icons

Search and browse all icons and view each in the different styles at no-mui-icons.com.

Browse app screenshot

Contributing

Pull Requests to the build tools and browse app are welcome. To build, clone the repository, pull the submodule, and run npm run build at the project root.

The icons are pulled directly from github.com/mui/material-ui via a submodule. If you find no-mui-icons is out-of-date, create an issue and I'll make a new build and republish.

License

The packaging, build tools, and browse app are available through the MIT license. The underlying icons are also licensed and redistributed under the MIT license.