Skip to content
DEVPANTRY.COM

Ubuntu Sans

Sans

By Google Fonts • Publisher: Google Fonts

16 styles available•Weights: 100, 200, 300, 400, 500, 600, 700, 800•Variable Font Support
Live Type Tester
SIZE:36px
WEIGHT:
TRACKING:0px

Styles & Weights Specimen

Weight 100
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
Weight 200
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
Weight 300
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
Weight 400
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
Weight 500
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
Weight 600
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
Weight 700
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
Weight 800
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789

Quick Integration Snippets

CSS @import
@import url('https://fonts.googleapis.com/css2?family=Ubuntu%20Sans:wght@100;200;300;400;500;600;700;800&display=swap');

body {
  font-family: 'Ubuntu Sans', sans-serif;
}
NPM Package
npm install @fontsource/ubuntu-sans
HTML <link> tag
<link href="https://fonts.googleapis.com/css2?family=Ubuntu%20Sans:wght@100;200;300;400;500;600;700;800&display=swap" rel="stylesheet">
Tailwind CSS v3 Config
// Tailwind CSS v3: tailwind.config.js
module.exports = {
  theme: {
    extend: {
      fontFamily: {
        "ubuntu-sans": ["Ubuntu Sans","sans-serif"],
      },
    },
  },
};
Tailwind CSS v4 Theme
/* Tailwind CSS v4: add after your font stylesheet imports */
@theme {
  --font-ubuntu-sans: 'Ubuntu Sans', sans-serif;
}

Recommended Typography Pairings

Contrast & Hierarchy

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

About Ubuntu Sans

Ubuntu Sans is a sans typeface published by Google Fonts. Its listed license is UFL-1.0. Free availability does not necessarily mean the font is open source. Check the publisher’s license and distribution details before embedding or redistributing files.

Font Weights & Styles

This typeface includes 16 styles. The available weights are: 100, 200, 300, 400, 500, 600, 700, 800.

Installation

Install the available font package for Ubuntu Sans:

npm install @fontsource/ubuntu-sans

Load the supported webfont styles and apply the family:

@import url('https://fonts.googleapis.com/css2?family=Ubuntu%20Sans:wght@100;200;300;400;500;600;700;800&display=swap');

body {
  font-family: 'Ubuntu Sans', sans-serif;
}

Recommended Font Pairings

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

  • JetBrains Mono (Monospace) — Sans Interface + Code Monospace: The quintessential developer stack typography pairing.
  • Clash Display (Display) — Body Copy + High-Impact Headline: Injects strong typographic identity into clean interfaces.
  • Fira Code (Monospace) — UI Sans + Ligature Monospace: Harmonious stroke weights between body prose and code snippets.

Related Tools