# @fontsource/roboto

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

Latest version **5.3.0** (published 2026-07-19) · OFL-1.1 license · 0 weekly downloads

## Install

```sh
npm install @fontsource/roboto
pnpm add @fontsource/roboto
yarn add @fontsource/roboto
bun add @fontsource/roboto
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.3.0 |
| Published | 2026-07-19 |
| First published | 2020-12-23 |
| Weekly downloads | 0 |
| License | OFL-1.1 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 494 |
| Author | Google Inc. |
| Maintainers | jwr1, lotusdevshack |
| Keywords | fontsource, font, font family, google fonts, roboto, Roboto, css, sass, front-end, web, typeface, variable |

## Links

- npm: https://www.npmjs.com/package/@fontsource/roboto
- Repository: https://github.com/fontsource/font-files
- Homepage: https://fontsource.org/fonts/roboto
- Issues: https://github.com/fontsource/font-files/issues
- Funding: https://github.com/sponsors/ayuhito
- npm.io page: https://npm.io/package/@fontsource/roboto

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 5.3.0 (latest) — 2026-07-19
- 5.2.10 — 2026-02-22
- 5.2.9 — 2025-11-23
- 5.2.8 — 2025-09-17
- 5.2.7 — 2025-09-14
- 5.2.6 — 2025-06-08
- 5.2.5 — 2025-03-02
- 5.2.4 — 2025-03-02
- 5.2.1 — 2025-03-02
- 5.2.0 — 2025-03-01
- 5.1.1 — 2024-12-29
- 5.1.0 — 2024-09-12
- 5.0.15 — 2024-09-08
- 5.0.14 — 2024-08-04
- 5.0.13 — 2024-04-20
- … 28 more at https://npm.io/package/@fontsource/roboto/versions

## README

# Fontsource Roboto

[![npm (scoped)](https://img.shields.io/npm/v/@fontsource/roboto?color=brightgreen)](https://www.npmjs.com/package/@fontsource/roboto) [![Generic badge](https://img.shields.io/badge/fontsource-passing-brightgreen)](https://github.com/fontsource/fontsource) [![Monthly downloads](https://badgen.net/npm/dm/@fontsource/roboto)](https://github.com/fontsource/fontsource) [![Total downloads](https://badgen.net/npm/dt/@fontsource/roboto)](https://github.com/fontsource/fontsource)

The CSS and web font files to easily self-host the “Roboto” font. Please visit the main [Fontsource website](https://fontsource.org/fonts/roboto) to view more details on this package.

## Quick Installation

Fontsource offers multiple methods to import the CSS, including using a bundler like Vite or using SASS. You can find full documentation [here](https://fontsource.org/docs/getting-started/introduction).

```javascript
npm install @fontsource/roboto
```

Within your app entry file or site component, import it in.

```javascript
import "@fontsource/roboto"; // Defaults to weight 400
import "@fontsource/roboto/400.css"; // Specify weight
import "@fontsource/roboto/400-italic.css"; // Specify weight and style
```

Supported variables:
- Weights: `[100,200,300,400,500,600,700,800,900]`
- Styles: `[italic,normal]`
- Subsets: `[cyrillic,cyrillic-ext,greek,greek-ext,latin,latin-ext,math,symbols,vietnamese]`

> Note: `italic` may not be supported by all fonts. To learn more about what weights and styles are supported, please visit the [Fontsource website](https://fontsource.org/fonts/roboto).

Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS.

```css
body {
  font-family: "Roboto";
}
```

## Licensing
Always make sure to read the license for each font you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0.

Copyright 2011 The Roboto Project Authors (https://github.com/googlefonts/roboto-classic) Roboto-Italic[wdth,wght].ttf: Copyright 2011 The Roboto Project Authors (https://github.com/googlefonts/roboto-classic)
[OFL-1.1](https://openfontlicense.org)

## Other Notes
Font version (provided by source): `v51`.

If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues).

---
_Source: https://npm.io/package/@fontsource/roboto · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
