Skip to content
DEVPANTRY.COM
Back to the font studio
FONTSHARESIL OFL 1.1

Public Sans

Sans

By Pablo Impallari, Rodrigo Fuenzalida, Dan Williams, USWDS • Publisher: Fontshare / ITF

20 styles available•Weights: 100, 200, 300, 400, 500, 600, 700, 800, 900•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
Weight 900
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789

Quick Integration Snippets

CSS @import
@import url('https://api.fontshare.com/v2/css?f[]=public-sans@100,101,200,201,300,301,400,401,500,501,600,601,700,701,800,801,900,901&display=swap');

body {
  font-family: 'Public Sans', sans-serif;
}
NPM Package
npm install @fontsource/public-sans
HTML <link> tag
<link href="https://api.fontshare.com/v2/css?f[]=public-sans@100,101,200,201,300,301,400,401,500,501,600,601,700,701,800,801,900,901&display=swap" rel="stylesheet">
Tailwind CSS v3 Config
// Tailwind CSS v3: tailwind.config.js
module.exports = {
  theme: {
    extend: {
      fontFamily: {
        "public-sans": ["Public Sans","sans-serif"],
      },
    },
  },
};
Tailwind CSS v4 Theme
/* Tailwind CSS v4: add after your font stylesheet imports */
@theme {
  --font-public-sans: 'Public Sans', sans-serif;
}

Recommended Typography Pairings

Contrast & Hierarchy

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

About Public Sans

Public Sans is a sans typeface published by Fontshare / ITF. Its listed license is SIL 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 20 styles. The available weights are: 100, 200, 300, 400, 500, 600, 700, 800, 900.

Installation

Install the available font package for Public Sans:

npm install @fontsource/public-sans

Load the supported webfont styles and apply the family:

@import url('https://api.fontshare.com/v2/css?f[]=public-sans@100,101,200,201,300,301,400,401,500,501,600,601,700,701,800,801,900,901&display=swap');

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

Recommended Font Pairings

Try these contrasting families with Public 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