Skip to content
Fontsource Logo

Installation

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

npm install @fontsource-variable/google-sans-code
sh

Import

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

ital
wght
MONO
// Supports weights 300-800
import '@fontsource-variable/google-sans-code/wght.css';
jsx

CSS

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

body {
  font-family: 'Google Sans Code Variable', monospace;
}
css

Font Details

Download Icon

Downloads: 86.56K

Edit Icon

Last Modified: 2026-04-14