Google Sans Code
A 2025 monospace built to sit next to Google Sans without either looking borrowed.
What it does
Google Sans Code is the monospaced companion to Google Sans, released in 2025 under the Open Font License. It is a variable font with a weight axis from Light to Bold and true italics, drawn with wider apertures and a larger x-height than the Roboto Mono it effectively replaces — which is the difference you notice in a documentation page rendered at 14px rather than in a terminal at 12pt.
Its design brief was code inside prose: the letterforms are close enough to the sans that a code span in a paragraph does not read as a different voice.
Ligatures and OpenType features
No programming ligatures. There are stylistic alternates for a handful of characters, and the usual zero slashed-zero feature.
The syntax for switching any of these on or off, per editor and per terminal, is on the Fonts page.
Notes
lsd icons will show empty boxes unless Symbols Nerd Font is installed and configured as the fallback. That is the supported route for any unpatched family.- Being a variable font, weight is continuous — an editor that accepts a numeric weight can ask for 450 rather than choosing between Regular and Medium.
- Available from Google Fonts as a web font, which makes it a reasonable choice for a site whose code blocks should match its body text.
Alternative to
| Alternative | Type | Trade-off |
|---|---|---|
| Roboto Mono | Open source | Google’s previous answer, tighter and more neutral |
| IBM Plex Mono | Open source | The same code-and-prose pairing idea, with a Nerd Font build |
| JetBrains Mono | Open source | Built for editors rather than for documents, and patched |
| Geist Mono | Open source | Vercel’s, from the same recent wave of corporate monospaces |
Install
brew install --cask font-google-sans-code