1.0.8 • Published 2 years ago

@iconsauce/mdi-svg v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@iconsauce/mdi-svg

This plugin scrapes Material Design Icons of @mdi/svg from which contains SVG versions.

For more infos go to iconsauce docs.

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

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

const MyComponent = () => {

  const icon = 'mdi/grass'

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

This plug-in will generate only icons used:

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

[class^="mdi/"], [class*=" mdi/"] {
  -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;
}

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

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago