CSS Typography

Как выбрать шрифт для сайта

Updated Февраль 24, 2026
Практическая пошаговая методология выбора правильного шрифта для сайта — аудитория, цель, читаемость и характер.

How to Choose a Font for Your Website

Choosing a font for a website sounds like a matter of personal preference, but in practice it's a constrained design problem with clear criteria. The wrong font choice increases bounce rates, slows page load times, and undermines brand credibility. The right one goes unnoticed — readers absorb content without friction, and the typeface quietly reinforces whatever emotion or authority the site needs to project. This guide gives you a structured, repeatable framework for making that decision, whether you're building a minimal portfolio or a high-traffic content platform.

Step 1: Define Your Brand Personality

Before opening Google Fonts or browsing type foundries, spend time articulating what your brand actually communicates. Typography is not merely a vehicle for text — it carries tone, era, cultural associations, and degrees of formality. A grotesque sans-serif like Inter signals efficiency, neutrality, and technical precision. A high-contrast serif like Playfair Display suggests elegance, editorial authority, and craftsmanship. A geometric sans like Poppins reads as friendly, modern, and approachable.

The most useful exercise is to write down five to ten adjectives that describe your brand: rigorous, playful, authoritative, minimal, vibrant, trustworthy, innovative. Then map those adjectives to type categories. Humanist sans-serifs (Gill Sans, Myriad) feel warm and approachable. Grotesques (Helvetica, Roboto) feel objective and functional. Old-style serifs (Garamond, Caslon) project heritage and intellectual depth. Geometric slab serifs (Rockwell, Zilla Slab) suggest confidence and solidity.

A common mistake is choosing a font purely because it looks appealing in isolation. A font that looks beautiful in a screenshot may feel completely wrong in context — too decorative for a fintech dashboard, too formal for a children's education app. The test is always: does this typeface feel like this brand when set in full paragraphs, in navigation labels, in error messages? Typography permeates every text element on a site, and tonal consistency across all of those elements requires deliberate selection.

Consider competitive positioning too. If every startup in your sector uses Inter, using Inter places you firmly within that visual language — which may be exactly right (you want to feel credibly tech-adjacent), or it may make you indistinguishable. Looking at what competitors use, and deciding whether to conform or differentiate, is a legitimate part of font selection.


Step 2: Identify Your Primary Use Case

The role that text will play on your site determines which font properties matter most. A site built primarily around long-form editorial content has different requirements than a marketing landing page, a web application dashboard, or an e-commerce product catalog. These are not just aesthetic differences — they affect which font categories perform best at the functional level.

Long-Form Reading

For articles, documentation, and blog posts — content where users spend minutes reading continuous prose — body text legibility is the paramount concern. Fonts designed for extended reading have specific characteristics: moderate stroke contrast, generous x-height, open apertures in letters like a, c, e, and s, and careful attention to spacing. Lora is an excellent choice for editorial sites — a serif with rhythmic proportions that was designed specifically for screen reading. For a sans-serif option at long form, Roboto offers extensive language support and has been tuned through years of use on Android and Google products.

Interface and Application UIs

Web application interfaces place a premium on legibility at small sizes, clear differentiation between weights, and economy of space. Labels, data fields, tooltips, navigation items, and status messages all need to work at 12-14px. Fonts with a high x-height and minimal stroke variation perform best here — Inter was explicitly designed for this use case, optimized for rendering at low pixel densities with particular attention to spacing at small sizes.

Marketing and Landing Pages

Marketing-first sites can use more expressive type choices because the text blocks are shorter and the primary goal is emotional impact rather than extended reading. Display faces, condensed forms, and high-contrast serifs are all viable. Here, brand personality (Step 1) carries more weight than raw legibility metrics.


Step 3: Check Readability Requirements

Readability is technically distinct from legibility. Legibility refers to how clearly individual letterforms are distinguished — whether a lowercase l and uppercase I can be told apart, whether the a is open or closed, how clearly rn differs from m. Readability refers to how easily extended passages of text can be processed — line length, line spacing, font size, and the cognitive rhythm of the typeface all contribute.

For body text, legibility is fundamental. Fonts with ambiguous letterforms cause reading friction that compounds over long paragraphs. Many sans-serif fonts have notably ambiguous letter pairs. Inter addresses this with a deliberate choice to use a single-story a and g in many contexts, and with careful spacing between similar-looking characters. OpenType features like cv05 (alternate a with two stories) and case (alternate uppercase forms) give designers additional control.

Contrast ratio is a hard requirement, not a stylistic preference. WCAG 2.1 AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (18pt or 14pt bold). Font choice affects this indirectly — a thin-weight font at small sizes may pass a contrast check on paper but fail in practice because hairline strokes disappear on low-brightness screens. If you're choosing a font with a full weight range, test your intended weights against your background colors at actual screen sizes.

Typographic hierarchy is a readability multiplier. A single-family system where hierarchy comes entirely from weight, size, and spacing variation usually outperforms a two-family system where hierarchy depends on recognizing two different typefaces. If you're building a content-heavy site, validate that your chosen font has enough weight variation — a minimum of Regular, SemiBold, and Bold — to establish clear hierarchy without introducing a second family.


Step 4: Evaluate Performance Impact

Font performance has a direct effect on Core Web Vitals — specifically on Largest Contentful Paint (LCP) and Cumulative Layout Shift (CLS). A font that adds 500ms to the critical render path or causes a significant layout reflow when it loads will hurt both user experience and search ranking. Performance evaluation should happen before you commit to a font choice, not after.

The performance question has two components: total weight and loading behavior. Total weight is straightforward to assess — download the WOFF2 files for the weights you plan to use and add up the file sizes. A typical well-compressed web font WOFF2 file is 20-50KB per weight. Loading four weights adds 80-200KB to your page, which at a typical mobile 3G connection speed represents 500ms-2 seconds of additional load. That number needs to be weighed against the font's contribution to the experience.

Variable fonts collapse multiple weights into a single file, typically at a slightly larger size than one static weight but dramatically smaller than loading three or four separate files. If you need three or more weights from the same typeface, a variable font version is almost always the right performance choice. Most major Google Fonts — including Inter, Roboto, and Poppins — have variable font versions available.

The second performance dimension is subsetting. Google Fonts automatically serves optimized subsets based on the character sets your page needs. If you're self-hosting, you need to handle this yourself. For a Latin-alphabet English-language site, subsetting to the basic Latin range can reduce file sizes by 60-80% compared to a full Unicode font file. The google fonts performance article covers measurement methodologies for comparing font loading approaches.


Step 5: Pick a Pairing That Works

Most sites benefit from a two-family pairing — one typeface for headings and one for body text. The art of font pairing is finding combinations that create sufficient contrast to establish hierarchy while remaining harmonically compatible rather than clashing.

The most reliable pairing strategies are built on contrast between categories. A high-contrast serif for headings (Playfair Display, Lora) paired with a clean humanist sans for body text (Inter, Roboto) is a classic combination that works reliably across many contexts. The serif carries personality and visual weight in the large display sizes, while the sans-serif maintains clarity in small body sizes where the serif's stroke variation might start to look fussy.

Same-family pairings — using two typefaces from the same superfamily — are foolproof. Many type foundries offer super families specifically designed to work together: a sans and a serif with matching proportions, x-heights, and spacing. Using Roboto for body text and Roboto Slab for headings works because the underlying metrics are harmonized.

When evaluating a pairing, the critical test is to set real content — your actual headlines, body text, captions, and navigation — in the proposed combination at intended sizes. A pairing that looks elegant in a mood board may produce visual friction in real context, especially if the two fonts have competing personalities or clashing proportions. For a deep dive on pairing methodology, see the complete guide to font pairing.


Decision Flowchart: Which Font Type Do You Need?

This flowchart condenses the decision framework into a quick-reference structure.

Is your site primarily editorial (articles, blog posts, documentation)? Yes → Prioritize body text legibility. Consider a well-crafted serif (Lora, Georgia) or a highly legible humanist sans (Inter, Roboto). Long-form reading favors fonts with generous spacing and moderate contrast. No → Continue.

Is your site primarily an application interface (dashboard, SaaS, tool)? Yes → Use a clean sans-serif optimized for small sizes. Inter is the near-universal choice here. Poppins is appropriate for more consumer-facing, friendly application contexts. No → Continue.

Is your site primarily a marketing or brand site? Yes → Brand personality (Step 1) dominates. You have the most latitude here. Display faces, expressive serifs, and custom typefaces are all appropriate.

Does your site need to support multiple languages or scripts? Yes → Prioritize fonts with comprehensive Unicode coverage. Noto Sans/Serif, Source Sans, and Roboto are designed for broad multilingual support. Many decorative fonts cover only basic Latin.

Do you need three or more weights? Yes → Prefer a variable font version to reduce file count. Check whether your chosen typeface has an available variable font — most major fonts now do.

Is load time a critical constraint? Yes → Limit to one font family, use a variable font if available, subset aggressively, and consider whether a well-chosen system font stack can serve your needs.


Common Mistakes When Choosing Fonts

The most frequent error is choosing a display or headline font as a body font. Display typefaces — ornate serifs, novelty designs, aggressive condensed faces — are designed to work at large sizes where their details are visible and their personality creates impact. Set at 16px across a 600px column of continuous prose, those same characteristics create visual noise and reading fatigue. A font that looks compelling at 80px in a header often looks illegible at 16px in a paragraph.

Using too many fonts is a close second. Three or more typeface families on a single site create visual cacophony. The discipline of working with one or two families and creating hierarchy through weight, size, and spacing is much harder than it sounds, but it almost always produces a more coherent result. If you find yourself reaching for a third family, question whether a bolder weight or a different size could solve the hierarchy problem instead.

Ignoring the system font alternative is another common oversight. System fonts — system-ui, -apple-system, Segoe UI, and platform defaults — are already installed, load instantly, and are tuned by platform designers for legibility on their respective displays. For application interfaces especially, system fonts are worth serious consideration. The performance and latency benefits are significant, and the appearance is often better than a generic web font loaded from a CDN.

Finally, choosing a font in isolation without testing it in a real browser at real sizes is a mistake that almost every designer makes at some point. Font metrics, rendering differences between operating systems, and the specific characteristics of your content all interact in ways that only become visible in actual deployment. Always test on real hardware — both desktop and mobile — before committing. The choosing fonts for your brand article explores the brand-alignment dimension of this framework in more depth, and best Google Fonts for websites in 2026 provides curated recommendations organized by use case for designers who want to start from proven options rather than open-ended exploration. For vertical-specific guidance, fonts for industries maps typeface recommendations to specific sectors and application contexts.

Typography Terms

Try These Tools

Fonts Mentioned

Roboto Sans Serif #1

Designed by Christian Robertson for Google's Material Design ecosystem, this neo-grotesque sans-serif is the most widely used typeface on the web and Android. Its dual-nature design balances mechanical precision with natural reading rhythm, making it equally at home in UI labels and long-form text. The variable font supports width and weight axes alongside Cyrillic, Greek, and extended Latin scripts.

The quick brown fox jumps over the lazy dog
Inter Sans Serif #5

Rasmus Andersson spent years refining this neo-grotesque specifically for computer screens, optimizing letter spacing, x-height, and stroke contrast for high readability at small sizes on digital displays. An optical size axis (opsz) lets the font automatically adjust its design for captions versus headlines, while the weight axis covers the full range from thin to black. It has become the de facto choice for dashboards, documentation sites, and developer tools worldwide.

The quick brown fox jumps over the lazy dog
Poppins Sans Serif #7

Developed by the Indian Type Foundry, this geometric sans-serif pairs perfectly circular bowls and uniform stroke widths with native Devanagari support, making it one of the few typefaces that genuinely integrates Latin and Indic scripts at a design level. The precise, modern letterforms project confidence and approachability, making Poppins a favorite for startup landing pages and app interfaces. Available in 18 styles across 9 weights, it offers practical flexibility without a variable font.

The quick brown fox jumps over the lazy dog
Playfair Display Serif #17

Claus Eggers Sorensen drew this high-contrast modern serif in the tradition of Bodoni and Didot, with dramatic thick-thin stroke transitions and delicate hairlines that demand high-resolution rendering. It excels in editorial design, luxury branding, and large-scale headings where its theatrical contrast can be appreciated. A variable weight axis and Cyrillic support complement the family's existing italic and small caps variants.

The quick brown fox jumps over the lazy dog
Lora Serif #26

Lora is a well-balanced contemporary serif with roots in calligraphic tradition, combining moderate contrast and flowing curves that give it a distinctly literary character. Cyreal designed it specifically for reading comfort on screen, and the variable weight axis — along with coverage of Cyrillic, Vietnamese, Math, and Symbols — extends its usefulness well beyond English prose. It performs equally well in elegant blog layouts and academic typesetting where warmth and credibility matter.

The quick brown fox jumps over the lazy dog

Related Articles