Skip to content
DEVPANTRY.COM

Xanh Mono

Monospace

By Google Fonts • Publisher: Google Fonts

2 styles available•Weights: 400
Live Type Tester
SIZE:36px
WEIGHT:
TRACKING:0px

Styles & Weights Specimen

Weight 400
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789

Quick Integration Snippets

CSS @import
@import url('https://fonts.googleapis.com/css2?family=Xanh%20Mono:wght@400&display=swap');

body {
  font-family: 'Xanh Mono', monospace;
}
NPM Package
npm install @fontsource/xanh-mono
HTML <link> tag
<link href="https://fonts.googleapis.com/css2?family=Xanh%20Mono:wght@400&display=swap" rel="stylesheet">
Tailwind CSS v3 Config
// Tailwind CSS v3: tailwind.config.js
module.exports = {
  theme: {
    extend: {
      fontFamily: {
        "xanh-mono": ["Xanh Mono","monospace"],
      },
    },
  },
};
Tailwind CSS v4 Theme
/* Tailwind CSS v4: add after your font stylesheet imports */
@theme {
  --font-xanh-mono: 'Xanh Mono', monospace;
}

Recommended Typography Pairings

Contrast & Hierarchy

Pairing Xanh Mono with high-contrast complementary typefaces creates strong visual hierarchy between headlines, interface body copy, and code blocks.

About Xanh Mono

Xanh Mono is a monospace typeface published by Google Fonts. Its listed license is OFL-1.1. It is distributed under the SIL Open Font License. Check the publisher’s license and distribution details before embedding or redistributing files.

Font Weights & Styles

This typeface includes 2 styles. The available weights are: 400.

Installation

Install the available font package for Xanh Mono:

npm install @fontsource/xanh-mono

Load the supported webfont styles and apply the family:

@import url('https://fonts.googleapis.com/css2?family=Xanh%20Mono:wght@400&display=swap');

body {
  font-family: 'Xanh Mono', monospace;
}

Recommended Font Pairings

Try these contrasting families with Xanh Mono. Compare them at the sizes used in your interface, especially body text and code:

  • Inter (Sans) — Code Accent + Neutral UI: Balances monospaced syntax with hyper-legible interface text.
  • Satoshi (Sans) — Fixed-Width + Modernist Sans: Clean modernist geometry for headings and navigation.
  • Space Grotesk (Display) — Code Body + Tech Display: Future-forward tech aesthetic for developer platforms.

Related Tools