Typography
Quote
Words that belong to someone else, set apart from yours.
On this page
A quote sets someone else's words apart from yours. In running text it hangs from a soft rail at its start, in the ink of a heading. The rail is drawn with round ends, not a border, so it never ends in a corner.
Quote
<blockquote class="quote max-w(420) mx-auto"> <p class="quote-text">Good tools make the next step clear and leave room for the work.</p> <footer class="quote-source"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/portrait-1.svg" alt> </span> <span> <span class="quote-name">Alex Morgan</span>Design lead, Atlas</span> </footer></blockquote>Put each paragraph of the quotation in a quote-text. The source is a <footer> with quote-source: an avatar if there is one, a quote-name in ink, and a quiet line for a role or a place. Put the title of a work in <cite>.
#Pull quote
quote-lg is a pull quote: the words carry it. The rail gives way to an opening mark, and the lines are balanced. Use one on a page, and keep it to a sentence or two.
Pull quote
<blockquote class="quote quote-lg max-w(480) mx-auto"> <p class="quote-text">We replaced four libraries with a stylesheet, and the interface got quieter.</p> <footer class="quote-source"> <span class="avatar"> <img class="avatar-image" src="/demo/portrait-3.svg" alt> </span> <span> <span class="quote-name">Sam Lee</span>Engineering, <cite>Orbit Review</cite> </span> </footer></blockquote>#Several paragraphs
Several paragraphs
<blockquote class="quote max-w(420) mx-auto"> <p class="quote-text">The first version shipped with eleven components. We thought that was a start.</p> <p class="quote-text">It turned out to be most of what an interface needs, most of the time.</p></blockquote>#Accessibility
- Use
<blockquote>for a quotation set apart and<q>for one inside a sentence. Aciteattribute can carry the source's URL. - The opening mark of a pull quote is decoration drawn by the stylesheet; it is not read. Do not type quotation marks into a pull quote as well.
- The source's avatar repeats the name beside it, so its
altis empty.
#Classes
| Class | Description |
|---|---|
quote | The quotation, hung from a 2px rail at its start |
quote-lg | A pull quote: larger words with balanced lines under an opening mark instead of the rail. With quote |
quote-text | A paragraph of the quotation |
quote-source | Who said it and where: an optional avatar beside a name and a muted line |
quote-name | The name, in strong ink on its own line |