Socket
Book a DemoInstallSign in
Socket

@fontsource/roboto

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fontsource/roboto

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

5.2.6
latest
Source
npmnpm
Version published
Weekly downloads
709K
-0.74%
Maintainers
2
Weekly downloads
 
Created

What is @fontsource/roboto?

@fontsource/roboto is an npm package that allows you to self-host the Roboto font in your web projects. It provides a convenient way to include the Roboto font family in your application without relying on external CDNs. This package supports various font weights and styles, making it versatile for different design needs.

What are @fontsource/roboto's main functionalities?

Basic Usage

This code imports the default Roboto font into your project. It includes the regular weight and normal style.

import '@fontsource/roboto';

Specific Font Weight

This code imports the Roboto font with a weight of 500. You can specify different weights by changing the number in the import path.

import '@fontsource/roboto/500.css';

Specific Font Style

This code imports the italic style of the Roboto font. You can combine this with different weights as needed.

import '@fontsource/roboto/italic.css';

Advanced Usage with CSS

This code imports the Roboto font with a weight of 500 and italic style. This is useful for more advanced typography needs.

import '@fontsource/roboto/500-italic.css';

Other packages similar to @fontsource/roboto

Keywords

fontsource

FAQs

Package last updated on 08 Jun 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.