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

@mdi/font

Package Overview
Dependencies
Maintainers
6
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdi/font

Dist for Material Design Webfont. This includes the Stock and Community icons in a single webfont collection.

  • 7.4.47
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
295K
decreased by-27.41%
Maintainers
6
Weekly downloads
 
Created

What is @mdi/font?

@mdi/font is a package that provides access to the Material Design Icons (MDI) in a web-friendly font format. It allows developers to easily integrate a wide range of icons into their web applications using simple CSS classes.

What are @mdi/font's main functionalities?

Basic Icon Usage

This feature allows you to include any of the Material Design Icons in your HTML by using the appropriate CSS class. The example shows how to include a 'home' icon.

<i class="mdi mdi-home"></i>

Icon Size Adjustment

You can adjust the size of the icons by appending size-specific classes. The example shows how to set the 'home' icon to 24 pixels.

<i class="mdi mdi-home mdi-24px"></i>

Icon Color Customization

You can customize the color of the icons using inline styles or CSS. The example shows how to set the 'home' icon color to red.

<i class="mdi mdi-home" style="color: red;"></i>

Rotating Icons

You can rotate icons by using rotation-specific classes. The example shows how to rotate the 'home' icon by 90 degrees.

<i class="mdi mdi-home mdi-rotate-90"></i>

Spinning Icons

You can make icons spin using the 'mdi-spin' class. The example shows how to make a 'loading' icon spin.

<i class="mdi mdi-loading mdi-spin"></i>

Other packages similar to @mdi/font

Keywords

FAQs

Package last updated on 27 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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