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

@fontsource/roboto

Package Overview
Dependencies
Maintainers
2
Versions
32
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.1.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
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

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