DEVPANTRY.COM

Hack Font

Back to 2,100+ Open Fonts
GITHUBSIL OFL 1.1 / Bitstream Vera

Hack

Monospace

By Source Foundry / Chris Simpkins • Publisher: Source Foundry / Chris Simpkins

4 styles availableWeights: 300, 400, 500, 600, 700, 800
Live Type Tester
SIZE:36px
WEIGHT:
TRACKING:0px

Styles & Weights Specimen

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=Hack:wght@400;600;700&display=swap');

body {
  font-family: 'Hack', monospace;
}
NPM Package
npm install @fontsource/hack
HTML <link> tag
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Hack:wght@400;600;700&display=swap" rel="stylesheet">
Tailwind CSS Config
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      fontFamily: {
        'hack': ['Hack', monospace],
      },
    },
  },
};

Recommended Typography Pairings

Contrast & Hierarchy

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

About Hack

Hack is a free, open-source monospace typeface published by Source Foundry / Chris Simpkins. It is distributed under the SIL OFL 1.1 / Bitstream Vera license, making it completely free for commercial and personal use.

Font Weights & Styles

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

Installation

You can install Hack via npm:

npm install @fontsource/hack

Or import it via CSS:

@import url('https://fonts.googleapis.com/css2?family=Hack:wght@400;600;700&display=swap');

Recommended Font Pairings

Creating typographic contrast is essential for high-impact web design. Here are battle-tested typeface pairings for Hack:

  • 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