# @iconsauce/material-icons

> An iconsauce plugin to gather official Google Material Icons SVG icons pack

Latest version **1.0.3** (published 2022-03-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install @iconsauce/material-icons
pnpm add @iconsauce/material-icons
yarn add @iconsauce/material-icons
bun add @iconsauce/material-icons
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-03-16 |
| First published | 2022-03-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vittorio Vittori |
| Maintainers | vitto |
| Keywords | plugin |

## Links

- npm: https://www.npmjs.com/package/@iconsauce/material-icons
- Repository: https://github.com/vitto/plugin-material-icons
- Homepage: https://github.com/vitto/plugin-material-icons#readme
- Issues: https://github.com/vitto/plugin-material-icons/issues
- npm.io page: https://npm.io/package/@iconsauce/material-icons

## Dependencies (1)

- [@material-icons/svg](https://npm.io/package/@material-icons/svg.md) ^1.0.25

## Recent versions

- 1.0.3 (latest) — 2022-03-16
- 1.0.2 — 2022-03-15
- 1.0.1 — 2022-03-15
- 1.0.0 — 2022-03-02

## README

# @iconsauce/material-icons

This plugin scrapes [Material Icons](https://github.com/material-icons/material-icons) of [@material-icons/svg](https://github.com/material-icons/material-icons) from which contains official Google SVG versions.

For more infos go to [iconsauce docs][iconsauce-docs].

```js
module.exports = {
  content: [
    './src/**/*.{tsx,ts}',
  ],
  fontSize: '24px',
  plugin: [
    require('@iconsauce/material-icons'),
  ],
}
```

You will be able to use these icons in your project.

```jsx
const MyComponent = () => {

  const icon = 'mi/baseline/grass'

  return <section className={ icon }>
    <div className="grid desktop:grid-cols-4 mi/baseline/emoticon-happy tablet:grid-cols-2 grid-cols-1 desktop:gap-6 gap-12 desktop:auto-rows-fr desktop:items-end">
      <i className="mi/baseline/access-point"/>
      <span className='bg-adjust-tone-01/24 mi/baseline/terminal'/>
      <div>
        <footer title="mi/baseline/gondola"></footer>
      </div>
    </div>
  </section>
}
export default MyComponent
```

This plug-in will generate only icons used:

```css
@font-face {
  font-family: "iconsauce";
  src: url("data:font/truetype;charset=utf-8;base64,A...Z") format("truetype");
}

[class^="mi/"], [class*=" mi/"] {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: "iconsauce" !important;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.mi\/access-point::before { content: "\ea01" }
.mi\/emoticon-happy::before { content: "\ea02" }
.mi\/gondola::before { content: "\ea03" }
.mi\/grass::before { content: "\ea04" }
.mi\/harddisk::before { content: "\ea05" }
```

[iconsauce-docs]: https://iconsauce.github.io/docs/

---
_Source: https://npm.io/package/@iconsauce/material-icons · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
