material-icons vs feather-icons vs react-icons
アイコンライブラリ
material-iconsfeather-iconsreact-icons類似パッケージ:

アイコンライブラリ

アイコンライブラリは、ウェブアプリケーションやモバイルアプリケーションのユーザーインターフェースに視覚的な要素を追加するためのツールです。これらのライブラリは、開発者が簡単にアイコンを使用できるように設計されており、デザインの一貫性を保ちながら、ユーザーエクスペリエンスを向上させることができます。

npmのダウンロードトレンド

3 年

GitHub Starsランキング

統計詳細

パッケージ
ダウンロード数
Stars
サイズ
Issues
公開日時
ライセンス
material-icons284,6123612.23 MB131年前Apache-2.0
feather-icons161,28725,840625 kB5082年前MIT
react-icons012,51186.2 MB2341年前MIT

機能比較: material-icons vs feather-icons vs react-icons

デザインスタイル

  • material-icons:

    Material Iconsは、Googleのマテリアルデザインに基づいており、立体感や影を持つデザインが特徴です。これにより、視覚的に魅力的で、ユーザーが直感的に理解しやすいインターフェースを提供します。

  • feather-icons:

    Feather Iconsは、シンプルでクリーンなデザインを持ち、細い線とオープンな形状が特徴です。これにより、現代的でミニマリストなインターフェースに適しています。

  • react-icons:

    React Iconsは、さまざまなスタイルのアイコンを提供し、プロジェクトのデザインに合わせて選択できます。これにより、開発者は一貫したデザインを維持しながら、必要なアイコンを簡単に見つけることができます。

カスタマイズ性

  • material-icons:

    Material Iconsは、CSSを使用して色やサイズを変更することができますが、SVGのような詳細なカスタマイズは難しいです。主にマテリアルデザインのガイドラインに従った使用が推奨されます。

  • feather-icons:

    Feather Iconsは、SVG形式で提供されているため、色やサイズを簡単にカスタマイズできます。これにより、デザインに合わせてアイコンを調整する柔軟性があります。

  • react-icons:

    React Iconsは、各アイコンをReactコンポーネントとして提供しており、プロパティを通じて簡単にスタイルを変更できます。これにより、開発者は動的にアイコンを変更することが可能です。

パフォーマンス

  • material-icons:

    Material Iconsは、フォントアイコンとしても使用できるため、パフォーマンスが良好ですが、SVGに比べてカスタマイズ性が制限されることがあります。

  • feather-icons:

    Feather Iconsは軽量で、SVGファイルが小さいため、ページの読み込み速度に与える影響が少なく、パフォーマンスを向上させます。

  • react-icons:

    React Iconsは、必要なアイコンのみをインポートすることができるため、アプリケーションのバンドルサイズを小さく保ち、パフォーマンスを最適化できます。

使用シナリオ

  • material-icons:

    Material Iconsは、マテリアルデザインを採用したアプリケーションや、Googleのデザインガイドラインに従う必要があるプロジェクトに最適です。

  • feather-icons:

    Feather Iconsは、シンプルでクリーンなデザインが求められるプロジェクトや、カスタマイズが多いアプリケーションに適しています。

  • react-icons:

    React Iconsは、Reactベースのプロジェクトで多様なアイコンを必要とする場合に便利で、迅速な開発をサポートします。

学習曲線

  • material-icons:

    Material Iconsは、マテリアルデザインの理解が必要ですが、基本的な使用は簡単で、すぐに使い始めることができます。

  • feather-icons:

    Feather Iconsは、シンプルなAPIを持ち、使い方が直感的であるため、学習曲線は非常に緩やかです。

  • react-icons:

    React Iconsは、Reactの知識があれば簡単に使用でき、特にReact開発者にとっては学習が容易です。

選び方: material-icons vs feather-icons vs react-icons

  • material-icons:

    Material Iconsは、Googleのマテリアルデザインに基づいたアイコンセットで、マテリアルデザインのガイドラインに従ったアプリケーションを開発する場合に適しています。

  • feather-icons:

    Feather Iconsは、軽量でシンプルなアイコンを必要とするプロジェクトに最適です。SVG形式で提供され、カスタマイズが容易で、デザインに柔軟性を持たせたい場合に選択してください。

  • react-icons:

    React Iconsは、Reactプロジェクトでアイコンを簡単に使用したい場合に最適です。多くのアイコンライブラリを統合しているため、さまざまなスタイルのアイコンを簡単に利用できます。

material-icons のREADME

material-icons Downloads

Latest icon fonts and CSS for self-hosting material design icons.

This package is automatically updated, so it will always have the latest icons from Google.

For Material Symbols, see material-symbols

For SVGs, see @material-design-icons/svg

Installation

Install the latest version using:

npm install material-icons@latest

Note: If you are upgrading from 0.x to 1.x see the 1.0.0 release notes.

Usage

Import in JS (example: src/index.js in Create React App, src/main.js in Vue CLI):

import 'material-icons/iconfont/material-icons.css';

or import in CSS (example: src/styles.css in Angular CLI):

@import 'material-icons/iconfont/material-icons.css';

or import in HTML:

<link href="/path/to/material-icons/iconfont/material-icons.css" rel="stylesheet">

To display an icon, use one of the following:

<span class="material-icons">pie_chart</span>          <!-- Filled -->
<span class="material-icons-outlined">pie_chart</span> <!-- Outlined -->
<span class="material-icons-round">pie_chart</span>    <!-- Round -->
<span class="material-icons-sharp">pie_chart</span>    <!-- Sharp -->
<span class="material-icons-two-tone">pie_chart</span> <!-- Two Tone -->

Reducing Build Size

The default material-icons.css includes CSS for all fonts. This may cause build tools such as webpack to copy all fonts to the build directory even if you are not using all of them. To reduce the build size, import only the styles you need. For example, if you only need filled and outlined icons, import filled.css and outlined.css instead of the default material-icons.css:

-import 'material-icons/iconfont/material-icons.css';
+import 'material-icons/iconfont/filled.css';
+import 'material-icons/iconfont/outlined.css';
Show all
IconsCSSSass
Filledfilled.cssfilled.scss
Outlinedoutlined.cssoutlined.scss
Roundround.cssround.scss
Sharpsharp.csssharp.scss
Two Tonetwo-tone.csstwo-tone.scss

Using Sass

Import in Sass (example: src/styles.scss in Angular CLI):

@import 'material-icons/iconfont/material-icons.scss';

Available Sass variables:

$material-icons-font-path: './' !default;
$material-icons-font-size: 24px !default;
$material-icons-font-display: block !default;

If you are getting errors with webpack or Vue CLI, add this line before importing:

$material-icons-font-path: '~material-icons/iconfont/';

Using Angular mat-icon

To display an icon, use one of the following:

<mat-icon>pie_chart</mat-icon>
<mat-icon fontSet="material-icons-outlined">pie_chart</mat-icon>
<mat-icon fontSet="material-icons-round">pie_chart</mat-icon>
<mat-icon fontSet="material-icons-sharp">pie_chart</mat-icon>
<mat-icon fontSet="material-icons-two-tone">pie_chart</mat-icon>

Using CSS Classes

Alternatively, you may use CSS classes instead of ligatures to display icons. Learn more

Available Icons

See demo.

License

Material design icons are created by Google.

We have made these icons available for you to incorporate into your products under the Apache License Version 2.0. Feel free to remix and re-share these icons and documentation in your products. We'd love attribution in your app's about screen, but it's not required.