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

font-awesome

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

font-awesome

The iconic font designed for Bootstrap

  • 3.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
836K
increased by8.63%
Maintainers
1
Weekly downloads
 
Created

What is font-awesome?

The font-awesome npm package provides a convenient way to incorporate Font Awesome icons into web projects. Font Awesome is a popular icon set and toolkit that includes scalable vector icons that can be customized with CSS. It can be used in web design and development to enhance the user interface with icons for various purposes such as social media, UI controls, branding, and more.

What are font-awesome's main functionalities?

Adding Icons

This code sample demonstrates how to add a camera retro icon from Font Awesome into HTML. The 'fa' and 'fa-camera-retro' classes are used to apply the specific icon's styles.

<i class='fa fa-camera-retro'></i>

Size Customization

This code sample shows how to customize the size of an icon using the 'fa-lg' class for a larger size. Font Awesome provides additional classes like 'fa-2x', 'fa-3x', etc., to further adjust the icon size.

<i class='fa fa-camera-retro fa-lg'></i>

Animated Icons

This code sample illustrates how to create an animated spinning icon using the 'fa-spin' class. Font Awesome also offers the 'fa-pulse' class for a pulsing animation effect.

<i class='fa fa-spinner fa-spin'></i>

Stacked Icons

This code sample demonstrates how to stack icons on top of each other using the 'fa-stack' class. The 'fa-stack-1x' and 'fa-stack-2x' classes are used to layer the icons, and 'fa-inverse' is used to invert the color of the top icon.

<span class='fa-stack fa-lg'><i class='fa fa-square fa-stack-2x'></i><i class='fa fa-twitter fa-stack-1x fa-inverse'></i></span>

Other packages similar to font-awesome

Keywords

FAQs

Package last updated on 02 Jul 2013

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