Hummingbird's typography system is built on a solid foundation of sensible defaults, with a focus on readability and usability.
Hummingbird uses the Figtree font by default. Add the following @import statement to the CSS or include CDN link in the <head> of the HTML document to load the font.
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');
Typography of Hummingbird follows a standard typographic scale with six levels of headings, paragraphs, and other text elements. The base font size is 16px, and the line height is set to 1.5 for optimal readability.
h1 to h6 headings are available, with decreasing font sizes and consistent margins.
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
Various inline text elements are available for emphasis and clarity.
strong tags for bold text.i tags for italic text.del tags for deleted text.Code: Use code tags for inline code snippets.kbd tags for keyboard input representation.mark tags for highlighted text.u tags for underlined text.small tags for smaller text.sup tags for superscript text.sub tags for subscript text.a tags for hyperlinks.em tags for emphasized text.<p>This is a <strong>bold</strong> text.</p>
<p>This is an <i>italic</i> text.</p>
<p>This is a <del>deleted</del> text.</p>
<p>This is a <code>inline code</code> text.</p>
<p>This is a <kbd>keyboard input</kbd> text.</p>
<p>This is a <mark>highlighted</mark> text.</p>
<p>This is an <u>underlined</u> text.</p>
<p>This is a <small>small</small> text.</p>
<p>This is a <sup>superscript</sup> text.</p>
<p>This is a <sub>subscript</sub> text.</p>
<p>This is a <a href="#">link</a>.</p>
<p>This is an <em>emphasized</em> text.</p>
Use Tailwind’s font size utilities to adjust the font size of text elements.
Use Tailwind’s responsive design utilities to adjust typography for different screen sizes.
<h1 class="text-2xl md:text-4xl lg:text-5xl">Responsive Heading</h1>
Hummingbird’s typography can be customized using Tailwind’s theme variables feature. Modify font families, sizes, weights, and line heights using CSS variable under the @theme directive.
@theme {
--font-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif;
--text-10xl: 10rem;
--leading-xl: 2.5;
}