Skip to content

Typography

Headings, paragraphs, quotes and inline text, styled with no class.

The root font size starts at the size the user set in the browser and grows to 112.5% between a 576px and a 1280px wide viewport. Everything sized in rem grows with it.

Headings

Each level has its own size, color and space above. A heading that follows other content gets extra space on top, so sections stay apart.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Heading group

hgroup joins a heading and a subtitle. The last line turns subtle.

Release notes

Everything that changed in version 2.

Inline text

Inline elements keep their meaning and get a matching look. Paragraphs and list items avoid a single word on the last line where the browser supports text-wrap: pretty.

Strong, bold, emphasis, italic, underline, strikethrough, small, highlighted, inserted, deleted, CSS, H2O and E = mc2.

Blockquote

A footer inside the quote holds the source.

Simplicity is prerequisite for reliability.

Edsger W. Dijkstra

Address and rule

Iris CSS
hello@example.com

Text after a horizontal rule.

Math

MathML uses a math font where one is installed.

a=b2+c2

Variables

The font stacks, base size and line height are global, see CSS variables.

VariableDefault
--i-small-font-size0.875em
--i-heading-font-weightHeadings700
--i-h1-font-size2rem
--i-h1-line-height1.125
--i-h1-margin-top3rem
--i-h2-font-size1.7rem
--i-h2-line-height1.15
--i-h2-margin-top2.625rem
--i-h3-font-size1.5rem
--i-h3-line-height1.175
--i-h3-margin-top2.25rem
--i-h4-font-size1.3rem
--i-h4-line-height1.2
--i-h4-margin-top1.875rem
--i-h5-font-size1.2rem
--i-h5-line-height1.225
--i-h5-margin-top1.6875rem
--i-h6-font-size1.1rem
--i-h6-line-height1.25
--i-h6-margin-top1.5rem
--i-h1-color-textlight-dark(#2d3138, #f0f1f3)
--i-h2-color-textlight-dark(#373c44, #e0e3e7)
--i-h3-color-textlight-dark(#424751, #c2c7d0)
--i-h4-color-textlight-dark(#4d535e, #b3b9c5)
--i-h5-color-textlight-dark(#5c6370, #a4acba)
--i-h6-color-textlight-dark(#646b79, #8891a4)
--i-mark-color-textlight-dark(#0f1114, var(--i-color-white))
--i-mark-color-backgroundlight-dark(#feeaca, #014063)
--i-ins-color-textlight-dark(#1d6a54, #62af9a)
--i-del-color-textlight-dark(#883835, #cd7e7b)
--i-blockquote-color-bordervar(--i-color-subtle-border)
--i-blockquote-footer-color-textvar(--i-color-subtle)