Fontsource Logo

Installation

Install the variable version of this font by running the following command:

⬤⬤

npm install @fontsource-variable/roboto-flex

sh

Import

Include the following line in the root layout of your project to import the font:

opsz
slnt
wdth
wght
GRAD
XOPQ
XTRA
YOPQ
YTAS
YTDE
YTFI
YTLC
YTUC

⬤⬤

// Supports only weight 400
import '@fontsource-variable/roboto-flex';

jsx

CSS

Include the CSS in your project by adding the following line to your project:

⬤⬤

body {
font-family: 'Roboto Flex Variable', sans-serif;
}

css

Font Details

Download Icon

Downloads: 1.1M

Edit Icon

Last Modified: 2025-09-05