Open-source project
system-fonts/modern-font-stacks avatar
system-fonts/modern-font-stacks

modern-font-stacks: the famous face is named, then left out

System font stack CSS organized by typeface classification for every modern operating system

3,544 stars54 forksHTMLCC0-1.0

At a glance

What is it?
Modern Font Stacks is a CSS reference that organises system font stacks by typeface classification, one declaration per category, with a weight table showing what each platform actually ships. The editorial policy is visible in the stacks themselves: the historical face everyone knows is named in the prose and deliberately absent from the declaration, because the point is to use what is already installed.
Who is it for?
Modern Font Stacks fits a team that wants a serif or a mono that looks native on every operating system without shipping a web font, and the weight tables are the part to read rather than the declarations. Two things to check before you adopt a stack from here.
Can I use it commercially?
Yes. CC0-1.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Activity is slowing. The repository last received commits 8 months ago.
What is it written in?
Mainly HTML, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • system-fonts/modern-font-stacks3,544 ★ · +18
Star history
Repository2026-09-242026-11-24
system-fonts/modern-font-stacks3.5k3.5k

18 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Fifteen classifications, one declaration each

The organisation of this reference is by typeface classification, and the navigation lists fifteen of them.

There is the interface category, then the serif families: transitional, old style, humanist, geometric humanist, classical humanist, then the sans categories of neo-grotesque, rounded sans and industrial, then the slab and monospace categories, and finally antique, didone and handwritten.

Every category follows the same shape. A short paragraph says what the classification means and when it was developed. Then a CSS font stack in one line. Then three links into the site: a browser view of that stack, an article view, and a characters view. Then a section for previewing the stack as it renders on each operating system, a table of which font weights each platform's face provides, and a set of notes.

So the document is a reference with a fixed template, and the three site links are the same for every entry. The site is a parameterised view: the stack name in a query string selects what you see.

That structure is what makes a project of this size maintainable. Adding a font to a category is a table edit, not a new page.

The most famous example is named in the prose and omitted from the stack

Read the transitional entry and there is an omission worth noticing.

The paragraph names Times New Roman as the most famous example of a transitional typeface, developed for a newspaper. Then the declaration begins with Charter, followed by Bitstream Charter, Sitka Text, Cambria and a generic serif. Times New Roman is not in it.

The old style entry does the same thing. The paragraph names Garamond as the most famous example of an old style face, developed in the Renaissance period. The declaration begins with Iowan Old Style, then Palatino Linotype, URW Palladio L, P052 and a generic serif. Garamond is not in it either.

Two entries, same pattern, and it is clearly a policy rather than an oversight. The prose teaches you the classification using the face you already know, and the declaration names only the faces you are likely to have. The historical face is the label on the category; the platform face is the one in the CSS.

This is the whole argument of the project in two lines: no downloading, no layout shift, no flash of fallback text. A stack can only deliver that if every name in it is already on the reader's machine.

Android's default serif is documented but deliberately unlisted

There is a third pattern in the same two entries, and it comes with a footnote.

The weight table for the transitional stack lists five faces, and the fifth carries a superscript marker. The notes then explain it: Android uses Noto Serif as its default serif font, so there is no need to specify it in the stack.

So a font appears in the table and not in the declaration, with a marker pointing at the reason. The table documents what will actually render on each platform; the declaration names only what must be named. Those are two different jobs, and conflating them is the mistake this layout avoids.

The same reasoning explains a row in the interface table. San Francisco, Segoe UI, Roboto and Noto Sans are all listed with nine weights, while Ubuntu and Cantarell are listed with five of the nine. Those are the default interface fonts of the platforms they belong to, and the differences in weight coverage are the reason a designer reading this reference learns that the interface value is not the same typeface everywhere.

The marker itself is worth noting as a documentation practice. A footnote that says why a row exists is more useful than deleting the row, and it is the difference between a table that looks incomplete and a table that is complete with explanations.

The weight tables are where a stack stops being theoretical

Every category carries a nine-column weight table, from the thinnest to the heaviest, and those tables carry most of the information.

Look at the interface category. Four of the six platform faces are marked as providing all nine weights. Ubuntu is marked for five, and Cantarell for five as well. So a stack declared as two words, an interface value and a generic fallback, resolves to six different typefaces depending on the machine, and two of those six have gaps in the weight range.

The transitional table is thinner still. Charter is marked at three weights, Bitstream Charter at two, Sitka Text at two, Cambria at two, and Noto Serif at two. None of them provides the light or black ends of the range. That is not a flaw in the table; it is a description of what those particular families ship.

The practical consequence is that a design relying on a wide weight range will render differently across platforms even with the same stack, and the tables are where you find out which platforms to test.

It is also the argument against treating a stack as a single typeface name. A stack is a set of five or six faces with different histories, different weights and different legibility, and only the fallback at the end is guaranteed to exist.

The interface category is a CSS value rather than a font stack

One entry breaks the pattern of the others and says so in its own notes.

The interface category is described as less of a font stack and more of a CSS value, representing the default user interface font. It is linked to a browser-support reference and described as widely supported on all modern operating systems.

The declaration follows from that. It is an interface value followed by a generic sans fallback, two words on the line:

css
font-family: system-ui, sans-serif;

Compare that to the serif categories, which list four or five named faces and end with a generic family. The interface stack has nothing to name because the operating system already knows the answer, and the fallback is there only for the case where the browser does not recognise the value.

The category's description is also the only one that argues from function rather than from history. The others describe when a typeface was developed and what its stress and serifs look like; this one says the faces are legible at small sizes, carry many weights, and suit interface elements. That is a recommendation about where to use it rather than a classification.

Two platform bugs are documented inside the notes

The notes are not decoration. Two of them report things that would otherwise be a mystery in production.

The first is a rendering bug. Charter for macOS has an odd wide non-breaking space character in it, and the note says the bug has been reported to Apple, with a link to the issue thread in this repository. So the entry is not only a font recommendation; it is a record that one of the recommended faces misrenders a specific character on one platform, and that someone has already chased it upstream.

The second note is historical and explains the first choice in the transitional stack. Charter was designed by a well known type designer in 1987 for low-resolution 300 dpi fax machines and laser printers, and the note credits its large x-height with readability that still holds on current screens.

That detail explains why this stack starts where it does. A face commissioned for fax machines has proportions tuned for the worst possible output device, so it is a defensible first choice for small text on a screen. Sitka, also by the same designer and slightly resembling Charter, was designed in collaboration with a research division at a large software vendor to optimise readability.

So the notes carry the reasoning that a bare declaration cannot.

The repository is a document and a site, under a public domain dedication

The tree is four entries, which tells you what this project is.

There is a licence file, a gitignore, this readme, an images directory and a site directory. There is no build script, no package manifest and no source for a library, because there is no library: the deliverable is a CSS reference and a website that renders it.

The primary language recorded for the repository is HTML, which fits. The site is what makes the per-stack links work: each category links into a page that takes the stack name as a parameter and renders the same declaration in an article layout, in a browser layout and in a character sample sheet. The readme is therefore both the documentation and the content that generates the site, which is why every entry repeats the same three links.

The licence is the public domain dedication, so there is nothing to attribute and nothing to clear if you copy a stack into a commercial project. For a reference whose whole purpose is to be copied into a stylesheet, that is the correct choice.

There are no tagged releases, so the readme on the default branch is the current version. The last recorded push to that branch is dated 2026-03-10.

Editorial conclusion

Modern Font Stacks fits a team that wants a serif or a mono that looks native on every operating system without shipping a web font, and the weight tables are the part to read rather than the declarations. Two things to check before you adopt a stack from here. The tables show that the faces are not interchangeable: in the interface category two of the six platform fonts provide five of the nine weights, so a design that assumes a full weight range will not get one everywhere. And the categories are deliberately narrow, so a stack that renders correctly on a desktop may substitute on a device whose system serif is a different face entirely. The licence is a public domain dedication, so there is nothing to clear, and the reference is generated from a site directory beside this document.

Frequently asked questions

What is a font stack?

In this reference, a CSS font-family declaration listing typefaces in the order the browser should try them, ending in a generic family such as serif or sans-serif so a substitute exists when none of the named faces are installed. The interface category is called out as a special case: system-ui is a CSS value representing the default interface font rather than a stack of names.

What does the modern-font-stacks project provide?

System font stacks for CSS organised by typeface classification across modern operating systems, pitched as fonts with no downloading, no layout shifts and no flashes. Each category gives one declaration, a table of which weights each platform's face provides, and notes, with links to a browser view, an article view and a character sheet.

Why is Noto Serif missing from the CSS stacks?

The notes state that Android uses Noto Serif as its default serif font, so there is no need to specify it in the stack. It still appears in the weight tables with a footnote marker, because the tables document what each platform actually renders.

Which fonts are listed for the system interface category?

Six platform default interface fonts: San Francisco, Segoe UI, Roboto, Ubuntu, Cantarell and Noto Sans. The weight table marks all nine weights for the first, second, third and last, and five of the nine for Ubuntu and Cantarell.

Official sources

  1. Issues
  2. License: CC0-1.0
  3. Project website
  4. README
  5. system-fonts/modern-font-stacks on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/system-fonts-modern-font-stacks.svg)](https://hysenlabs.com/projects/system-fonts-modern-font-stacks)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/system-fonts-modern-font-stacks.svg)](https://hysenlabs.com/projects/system-fonts-modern-font-stacks)

Was this useful?