Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

material-icons

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material-icons - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

package.json
{
"name": "material-icons",
"version": "0.2.1",
"version": "0.2.2",
"description": "Material design icon font and CSS framework for self hosting the icons.",

@@ -13,3 +13,3 @@ "scripts": {

"devDependencies": {
"node-sass": "^4.7.2"
"node-sass": "^4.9.0"
},

@@ -16,0 +16,0 @@ "license": "Apache-2.0",

@@ -5,3 +5,3 @@ # Material Icons

> **Note:** This package contains only the icon font and required CSS. So it is considerably small compared to the official [material-design-icons] package and easy to install.
> **Note:** This package contains only the icon font and required CSS. So it is considerably small compared to the official `material-design-icons` package and easy to install.

@@ -18,5 +18,5 @@ ## Installation

Font files are present in the `iconfont` directory and can be imported using CSS.
Font files are present in the [`iconfont`][iconfont] directory and can be imported using CSS.
Import the required CSS:
Import CSS:

@@ -27,14 +27,20 @@ ```html

or import the SCSS:
To display an icon, use:
```html
<span class="material-icons">face</span>
```
To customize the build, import Sass instead of CSS:
```scss
$material-icons-font-path: '~material-icons/iconfont/';
@import 'material-icons/iconfont/material-icons.scss';
```
To display an icon use:
If you are using webpack sass-loader, use:
```html
<span class="material-icons">face</span>
```scss
$material-icons-font-path: '~material-icons/iconfont/';
@import '~material-icons/iconfont/material-icons.scss';
```

@@ -62,7 +68,7 @@

Alternatively you can use CSS classes to display an icon.
Alternatively, you may use CSS classes to display an icon.
> **Note:** This method is not recommended as it requires a large CSS file to be imported in addition to above files.
Import the required CSS:
Import CSS:

@@ -73,14 +79,18 @@ ```html

or import the SCSS:
To display an icon, use:
```html
<span class="mi mi-face"></span>
```
To customize the build, import Sass instead of CSS:
```scss
$material-icons-css-prefix: 'mi';
@import 'material-icons/css/material-icons.scss';
```
To display an icon use:
If you are using webpack sass-loader, use:
```html
<span class="mi mi-face"></span>
```scss
@import '~material-icons/css/material-icons.scss';
```

@@ -106,6 +116,5 @@

See [material design icons].
See <a href="https://material.io/icons/" target="_blank" rel="nofollow">material design icons</a>.
[latest release]: https://github.com/marella/material-icons/releases
[material design icons]: https://material.io/icons/
[material-design-icons]: https://github.com/google/material-design-icons
[iconfont]: https://github.com/marella/material-icons/tree/master/iconfont
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc