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

@fontsource/inter

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fontsource/inter

Self-host the Inter font in a neatly bundled NPM package.

  • 5.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
303K
increased by4.85%
Maintainers
2
Weekly downloads
 
Created

What is @fontsource/inter?

@fontsource/inter is an npm package that allows you to self-host the Inter font family. It provides a convenient way to include the Inter font in your web projects without relying on external services like Google Fonts.

What are @fontsource/inter's main functionalities?

Basic Usage

This code imports the default weight and style of the Inter font into your project.

import '@fontsource/inter';

Specific Weight and Style

This code imports specific weights (400 and 700) of the Inter font, allowing you to use different font weights in your project.

import '@fontsource/inter/400.css';
import '@fontsource/inter/700.css';

Variable Font

This code imports the variable font version of Inter, which allows for more flexible and responsive typography.

import '@fontsource/inter/variable.css';

Subset Support

This code imports specific subsets of the Inter font, such as Latin and Cyrillic, which can help reduce the font file size if you only need certain character sets.

import '@fontsource/inter/latin.css';
import '@fontsource/inter/cyrillic.css';

Other packages similar to @fontsource/inter

Keywords

FAQs

Package last updated on 12 Sep 2024

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