Giter VIP home page Giter VIP logo

modern-font-stacks's Introduction

Modern Font Stacks

Modern Font Stacks

System font stack CSS organized by typeface classification for every modern OS

The fastest fonts available. No downloading, no layout shifts, no flashes — just instant renders.



System UI  ·  Transitional  ·  Old Style  ·  Humanist  ·  Geometric Humanist

Classical Humanist  ·  Neo-Grotesque  ·  Monospace Slab Serif  ·  Monospace Code

Industrial  ·  Rounded Sans  ·  Slab Serif  ·  Antique  ·  Didone  ·  Handwritten



Additional Features   /   Operating System Support   /   Plugins and Extensions


System UI

System UI fonts are those native to the operating system interface. They are highly legible and easy to read at small sizes, contains many font weights, and is ideal for UI elements.

CSS Font Stack

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

System UI Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems System UI Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
San Francisco
Segoe UI
Roboto
Ubuntu
Cantarell
Noto Sans

Notes

  • System UI is less of a font stack and more of a CSS value, system-ui, representing the default user interface font. It is widely supported on all modern operating systems.
  • The fonts shown are the default fonts for UI in each modern OS.

Back to Top ↑

Transitional

Transitional typefaces are a mix between Old Style and Modern typefaces that was developed during The Enlightenment. One of the most famous examples of a Transitional typeface is Times New Roman, which was developed for the Times of London newspaper.

CSS Font Stack

font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;

Transitional Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Transitional Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Charter
Bitstream Charter
Sitka Text
Cambria
Noto Serif¹

Notes

  • Charter is a fantastic and timeless typeface designed by Matthew Carter in 1987 for low-resolution 300dpi fax machines and laser printers. It has a large x-height helping with readability, and holds up beautifully on today's screens.
  • Charter for macOS has an odd wide non-breaking space ( ). This bug has been reported to Apple.
  • Sitka is another beautiful typeface designed by Matthew Carter that slightly resembles Charter. Sitka was designed in collaboration Microsoft's Advanced Reading Technologies to optimize readability.
  • Android uses Noto Serif as its default serif font, so no need to specify in the stack.

Back to Top ↑

Old Style

Old Style typefaces are characterized by diagonal stress, low contrast between thick and thin strokes, and rounded serifs, and were developed in the Renaissance period. One of the most famous examples of an Old Style typeface is Garamond.

CSS Font Stack

font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;

Old Style Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Old Style Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Iowan Old Style
Palatino Linotype
URW Palladio L
P052
Noto Serif¹

Notes

  • Android uses Noto Serif as its default serif font, so no need to specify in the stack.

Back to Top ↑

Humanist

Humanist typefaces are characterized by their organic, calligraphic forms and low contrast between thick and thin strokes. These typefaces are inspired by the handwriting of the Renaissance period and are often considered to be more legible and easier to read than other sans-serif typefaces.

CSS Font Stack

font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;

Humanist Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Humanist Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Seravek
Gill Sans Nova
Ubuntu
Calibri
DejaVu Sans
Source Sans Pro

Notes

  • Gill Sans Nova is available as a supplemental downloadable font.
  • Source Sans Pro uses name source-sans-pro under Android, so this font only targets Android devices.

Back to Top ↑

Geometric Humanist

Geometric Humanist typefaces are characterized by their clean, geometric forms and uniform stroke widths. These typefaces are often considered to be modern and sleek in appearance, and are often used for headlines and other display purposes. Futura is a famous example of this classification.

CSS Font Stack

font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;

Geometric Humanist Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Geometric Humanist Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Avenir
Montserrat
Corbel
URW Gothic
Source Sans Pro

Notes

  • Avenir was chosen over Avenir Next for macOS because the weight 300 is much more legible on the web over the 200 weight that Avenir Next has. If you're looking for an ultra-light or ultra-black, feel free to swap Avenir for Avenir Next.
  • Source Sans Pro uses name source-sans-pro under Android, so this font only targets Android devices.

Back to Top ↑

Classical Humanist

Classical Humanist typefaces are characterized by how the strokes subtly widen as they reach the stroke terminals without ending in a serif. These typefaces are inspired by classical Roman capitals and the stone-carving on Renaissance-period tombstones.

CSS Font Stack

font-family: Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif;

Classical Humanist Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Classical Humanist Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Optima
Candara
Noto Sans
Source Sans Pro

Notes

  • Source Sans Pro uses name source-sans-pro under Android, so this font only targets Android devices.

Back to Top ↑

Neo-Grotesque

Neo-Grotesque typefaces are a style of sans-serif that was developed in the late 19th and early 20th centuries and is characterized by its clean, geometric forms and uniform stroke widths. One of the most famous examples of a Neo-Grotesque typeface is Helvetica.

CSS Font Stack

font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;

Neo-Grotesque Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Neo-Grotesque Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Inter
Roboto
Helvetica Neue
Arial Nova
Nimbus Sans
Arial

Notes

  • Arial Nova is available as a supplemental downloadable font.
  • Roboto is used for Linux (MX Linux, ElementaryOS, etc) and manual installs. It will not render Roboto on Android, but Android's generic sans-serif will.

Back to Top ↑

Monospace Slab Serif

Monospace Slab Serif typefaces are characterized by their fixed-width letters, which have the same width regardless of their shape, and its simple, geometric forms. Used to emulate typewriter output for reports, tabular work and technical documentation.

CSS Font Stack

font-family: 'Nimbus Mono PS', 'Courier New', monospace;

Monospace Slab Serif Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Monospace Slab Serif Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Nimbus Mono PS
Courier New
Cutive Mono

Notes

  • Nimbus Mono PS is specified first because many Linux distros create name alias for Courier New and not always represent a slab serif
  • Cutive Mono doesn't need to be represented in the stack as Android creates a name alias for Courier New.
  • Cutive Mono unfortunately only has one weight

Back to Top ↑

Monospace Code

Monospace Code typefaces are specifically designed for use in programming and other technical applications. These typefaces are characterized by their monospaced design, which means that all letters and characters have the same width, and their clear, legible forms.

CSS Font Stack

font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;

Monospace Code Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Monospace Code Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
SF Mono
Cascadia Code
Source Code Pro
Menlo
Consolas
DejaVu Sans Mono
Droid Sans Mono

Notes

  • SF Mono is only available via ui-monospace on macOS 10.15+ and iOS 13.3+ while using Safari
  • Droid Sans Mono for Android does not need to be specified in the stack as monospace is a name alias for it

Back to Top ↑

Industrial

Industrial typefaces originated in the late 19th century and was heavily influenced by the advancements in technology and industry during that time. Industrial typefaces are characterized by their bold, sans-serif letterforms, simple and straightforward appearance, and the use of straight lines and geometric shapes.

CSS Font Stack

font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;

Industrial Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Industrial Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Bahnschrift
DIN Alternate
Franklin Gothic Medium
Nimbus Sans Narrow
Roboto Condensed

Notes

  • Since this stack is limited on weights across operating systems, it's best to use as a Medium/Bold display font
  • Bahnschrift is one of the first variable font added to Windows.
  • Roboto Condensed uses name sans-serif-condensed under Android, so this font only targets Android devices.

Back to Top ↑

Rounded Sans

Rounded typefaces are characterized by the rounded curved letterforms and give a softer, friendlier appearance. The rounded edges give the typeface a more organic and playful feel, making it suitable for use in informal or child-friendly designs. The rounded sans-serif style has been popular since the 1950s, and it continues to be widely used in advertising, branding, and other forms of graphic design.

CSS Font Stack

font-family: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;

Rounded Sans Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Rounded Sans Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
SF Pro Rounded
Hiragino Maru Gothic
Quicksand
Comfortaa
Manjari
Arial Rounded MT
Arial Rounded MT Bold
Calibri
Source Sans Pro

Notes

  • SF Pro Rounded is only available via ui-rounded on macOS 10.15+ and iOS 13.3+ while using Safari
  • Hiragino Maru Gothic is technically a Japanese typeface but has support for all the latin characters. The Mac font does not include a bold so a faux bold will be displayed on screen.
  • Arial Rounded MT is needed for Windows, while Arial Rounded MT Bold is needed for iOS, Mac, and older Windows installs
  • Source Sans Pro uses name source-sans-pro under Android, so this font only targets Android devices. It's not a rounded typeface, but it's better than Roboto here.

Back to Top ↑

Slab Serif

Slab Serif typefaces are characterized by the presence of thick, block-like serifs on the ends of each letterform. These serifs are usually unbracketed, meaning they do not have any curved or tapered transitions to the main stroke of the letter.

CSS Font Stack

font-family: Rockwell, 'Rockwell Nova', 'Roboto Slab', 'DejaVu Serif', 'Sitka Small', serif;

Slab Serif Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Slab Serif Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Rockwell
Rockwell Nova
Roboto Slab
DejaVu Serif
Sitka Small
Noto Serif

Notes

  • Rockwell is included with Windows Office
  • Rockwell Nova is available as a supplemental downloadable font.
  • Android uses Noto Serif as its default serif font, so no need to specify in the stack.

Back to Top ↑

Antique

Antique typefaces, also known as Egyptians, are a subset of serif typefaces that were popular in the 19th century. They are characterized by their block-like serifs and thick uniform stroke weight.

CSS Font Stack

font-family: Superclarendon, 'Bookman Old Style', 'URW Bookman', 'URW Bookman L', 'Georgia Pro', Georgia, serif;

Antique Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Antique Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Superclarendon
Bookman Old Style
URW Bookman
Georgia Pro
Georgia
Noto Serif¹

Notes

  • Georigia Pro is available as a supplemental downloadable font.
  • Android uses Noto Serif as alias for Georgia, so no need to specify in the stack.

Back to Top ↑

Didone

Didone typefaces, also known as Modern typefaces, are characterized by the high contrast between thick and thin strokes, vertical stress, and hairline serifs with no bracketing. The Didone style emerged in the late 18th century and gained popularity during the 19th century.

CSS Font Stack

font-family: Didot, 'Bodoni MT', 'Noto Serif Display', 'URW Palladio L', P052, Sylfaen, serif;

Didone Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Didone Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Didot
Bodoni MT
Noto Serif Display
URW Palladio L
P052
Sylfaen
Noto Serif¹

Notes

  • Android uses Noto Serif as its default serif font, so no need to specify in the stack.
  • Sylfaen does not include a bold so a faux bold will be displayed on screen.

Back to Top ↑

Handwritten

Handwritten typefaces are designed to mimic the look and feel of handwriting. Despite the vast array of handwriting styles, this font stack tend to adopt a more informal and everyday style of handwriting.

CSS Font Stack

font-family: 'Segoe Print', 'Bradley Hand', Chilanka, TSCu_Comic, casual, cursive;

Handwritten Font Stack

   💻 View in Your Browser (Article View / Characters)

🎥 Preview Rendering Across Operating Systems Handwritten Font Rendering
✅ Font Weights & Notes
Font Weights 100 200 300 400 500 600 700 800 900
Segoe Print
Bradley Hand
Chilanka
TSCu_Comic
Coming Soon

Notes

  • Coming Soon uses name casual under Android, so this font only targets Android devices.

Back to Top ↑

Additional Features

Emoji Support

Looking to add native emojis to your page? Append these fonts at the end of your font stack:

'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'

Anti-Aliasing

Render your text with anti-aliasing by using these CSS properties:

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

Operating System Support

Back to Top ↑

Plugins and Extensions

Back to Top ↑

modern-font-stacks's People

Contributors

colingourlay avatar crhallberg avatar danklammer avatar petecooper avatar troyjfarrell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

modern-font-stacks's Issues

MFS for TailwindCSS

Found myself wanting to use this awesome stuff in a little project I am using TailwindCSS with.
So I quickly put this together:
https://github.com/BorisAnthony/mfs-tailwind
In case anyone else wants/needs it.
(Feedback welcome. Just started with TW so may have not done it the best way or something…)
Thank you in any case. Very handy!

Available is indistinguishable from Unavailable

...when you're red-green color blind.

For example strike through would make Unavailable clearly different, kind of similar to underlining on the "Currently In Use" variant. Maybe little extreme though.

Window's New Aptos

Microsoft have decided on a new default Office font: Aptos.

It's probably safe to say this will be on many Windows machines in the near future (kind of like Arial Nova). The designer describes it as a Grotesque Sans Serif, and I think it would work well there or in the Geometric Humanist category, but you have a better eye for categorization than me.

I'm happy to open a PR when the font releases, but I won't be able to generate the reference images.

Also, it looks like Aptos Serif is in the works as well (farther down the same blog post).

Installed fonts are not shown in your web site as preview

I'm sorry if I'm misguided, but many fonts mentioned in your web site are not shown in the preview article, nor in the rest of the web site. Many of those fonts are already installed in my system, I use them in projects, etc.

However, your site shows (underlined fonts) that the current font that's in use are the very basic font of each category: san-serif, monospace, serif.

So maybe I don't get it, or something is wrong.

add iOS-font to stack "industrial"

the current font stack does not address iOS.
perhaps it would be prudent to clarify that the sans-serif fallback resolves to San Francisco (and that San Francisco fits the font-stack)?

Font Order for Clarity

I wonder if it would be useful to order the fonts in a consistent way, perhaps by operating system market share.

For example, Android is the most common OS, so put Android-targeting fonts first. I think this would make it clear which fonts are most-likely to be used when styling with a particular stack. I don't think it'll have any meaningful performance impacts.

Happy to do a PR if I can help! Just a thought. Love the project very much!

Font statistics?

This looks like a great resource. However, previous incarnations of font stacks gave statistics as to how common each font might be on each platform. In other words, what the likeliest font would be on each platform, %-wise, and how it would appear. Any chance you could add something like that?

Industrial missing font weights on MacOS

Currently Mac is selecting 'DIN Alternate' when viewed on MacOS 13.2.1. This font doesn't have additional font weights. Is there an equivalent that can be used instead?

PS Thanks for putting this site together, the more designed focused members of our team are excited to have more font option to choose from.

suggestion: move the key to the top

Originally mentioned here and something that slightly confused me was the significance of the colours/formatting - until you reach the bottom of the page, the key isn't visible. It would probably be s good idea to put it above the font collection.

(Very handy site, by the way :3)

Several outstanding issues

Hi,

I love the motivation behind this project but I see several outstanding issues:

  • Cloud fonts in Office such as Avenir Next LT Pro are only installed to the local application data store and are not exposed to the OS.
  • Windows' Pan-European Supplemental Fonts such as Gill Sans Nova must be manually installed (no automatic language associations) [1].
  • Arial Rounded MT Bold is not a recognized family name under Windows platform Chromium installs.
  • fonts-comfortaa is only available in 4247, fonts-smc-chilanka and fonts-smc-manjari in 547, and fonts-taml-tscu in 59 out of 78246 fontconfig installs on Debian GNU/Linux stable per popcon [2].
  • Bitstream Charter is a Type 1 font provided by the texlive-fonts-recommended package, available in 8647 out of 78246 installs, and Montserrat is provided by the texlive-fonts-extra package, available in 4212 out of 78246 fontconfig installs on Debian GNU/Linux stable. (I am not even sure if texmf-dist fonts are exposed to the OS?)
  • Android is supported at surface level. Cutive Mono, Roboto and others are not recognized family names. Android platform family names and aliases are not included (see [3]).
  • ChromeOS is not supported (see [4]).

This is not a comprehensive list but I hope it gets the ball rolling for a project revision.

Thanks.

[1] https://learn.microsoft.com/en-us/globalization/input/font-support
[2] https://popcon.debian.org/stable/main/by_vote
[3] https://android.googlesource.com/platform/frameworks/base/+/refs/heads/android13-release/data/fonts/fonts.xml
[4] https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/refs/heads/release-R113-15393.B/media-fonts/

Android support

Most of proposed fonts are not available on Android, so most of the time, the default serif is used.

Modern Font Stacks WordPress plugin

Hi Dan,

Thanks for this great tool! 🥇
I was surprised to see (after Chris Ferdinandi sharing this) what is possible with system fonts. I will definitely fresh up my website with one of these font stacks.

I wanted to let you know that I created this WordPress plugin to enable adding these font stacks to WordPress and choosing them easily in the Site Editor (see screenshot in the repo). And using them more widely, without additional load to the website! 💯

I hope you like it.

[heads up] Be warned about fingerprint protection in Firefox

I suppose this is an issue this project can't fix.

With "Enhanced Tracking Protection" on Firefox blocks certain fonts. e.g. on macOS for the "Humanist" stack:
Request for font "Seravek" blocked at visibility level 2 (requires 3)

FF blocks this because of a potential "suspected fingerprinter". And sure - if your machine contains Seravek it is bound to be a mac. I hope they will refine this check in the future so your page is not being mangled.

See: yokoffing/Betterfox#261

Zeroes

For some users, such as coders, a key criterion for using a font is how it ensures that zeroes are not mistaken for letter 'O's. It would be great if the images of the font stacks included zero: 0123456789 instead of 123456789. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.