Skip to content
DEVPANTRY.COM
Back to the font studio
GOOGLEApache-2.0

Roboto Slab

Serif

By Google Fonts • Publisher: Google Fonts

9 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://fonts.googleapis.com/css2?family=Roboto%20Slab:wght@100;200;300;400;500;600;700;800;900&display=swap');

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

Recommended Typography Pairings

Contrast & Hierarchy

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

About Roboto Slab

Roboto Slab is a serif typeface published by Google Fonts. Its listed license is Apache-2.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 9 styles. The available weights are: 100, 200, 300, 400, 500, 600, 700, 800, 900.

Installation

Install the available font package for Roboto Slab:

npm install @fontsource/roboto-slab

Load the supported webfont styles and apply the family:

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

body {
  font-family: 'Roboto Slab', serif;
}

Recommended Font Pairings

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

  • Inter (Sans) — Serif Headline + Modern UI Body: Grounds classic editorial serifs with crisp digital legibility.
  • General Sans (Sans) — Serif Titles + Clean Sans Subtext: Warm editorial balance across marketing pages.
  • JetBrains Mono (Monospace) — Serif Copy + Code Accents: Contrasting literary prose with precision technical monospacing.

Related Tools