# Material Icons [#material-icons]

Fontsource provides support for all variations of Material Icons. You can find more details on how to use the font variation of the project [here](https://google.github.io/material-design-icons/#icon-font-for-the-web).

## Installation [#installation]

To install Material Icons from Fontsource, follow the steps below:

### 1. Install Icon Set [#1-install-icon-set]

Install the desired icon set from Fontsource using your package manager of choice. For example, if you want to use the Material Icons Round icon set, you would install the `@fontsource/material-icons-round` package.

### 2. Import Icon Set [#2-import-icon-set]

In your application’s entry file or component, import the font variation you installed. For example:

```jsx
import "@fontsource/material-icons";
import "@fontsource/material-icons-round";
import "@fontsource/material-icons-outlined";
import "@fontsource/material-icons-sharp";
import "@fontsource/material-icons-two-tone";
```

### 3. Apply CSS class [#3-apply-css-class]

To ensure proper rendering of the icons, include the following CSS class in your HTML file:

```css
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}
```

You can learn more about styling Material Icons [here](https://developers.google.com/fonts/docs/material_icons#setup_method_2_self_hosting).
