1
1
mirror of https://github.com/primer/css.git synced 2024-12-29 17:12:27 +03:00
css/docs/type.md
2015-03-30 11:38:32 -07:00

3.6 KiB

layout title
page Typography

Headings, paragraphs, blockquotes, lists, and more have some global resets. It's worth noting these aren't the same as our Markdown styles.

Contents

  • Will be replaced with the ToC, excluding the "Contents" header {:toc}

Headings

{% example html %}

h1. Primer heading

h2. Primer heading

h3. Primer heading

h4. Primer heading

h5. Primer heading
h6. Primer heading
{% endexample %}

Body text

{% example html %}

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.

Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

{% endexample %}

Lead

Make a paragraph stand out by adding .lead.

{% example html %}

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.

{% endexample %}

Inline text elements

Styling for common inline HTML5 elements.

{% example html %}

You can use the mark tag to highlight text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as an addition to the document.

This line of text will render as underlined

This line of text is meant to be treated as fine print.

This line rendered as bold text.

This line rendered as italicized text.

{% endexample %}

Blockquotes

Wrap <blockquote> around any HTML as the quote. For straight quotes, we recommend a <p>.

{% example html %}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

{% endexample %}

Lists

Heads up! The broken display of lists is intentional as Primer globally resets these elements for the time being. This will eventually be undone in the next major version.

Unordered

A list of items in which the order does not explicitly matter.

{% example html %}

  • Lorem ipsum dolor sit amet
  • Nulla volutpat aliquam velit
    • Phasellus iaculis neque
    • Purus sodales ultricies
    • Vestibulum laoreet porttitor sem
    • Ac tristique libero volutpat at
  • Faucibus porta lacus fringilla vel
  • Aenean sit amet erat nunc
  • Eget porttitor lorem
{% endexample %}

Ordered

A list of items in which the order does explicitly matter.

{% example html %}

  1. Lorem ipsum dolor sit amet
  2. Nulla volutpat aliquam velit
    1. Phasellus iaculis neque
    2. Purus sodales ultricies
    3. Vestibulum laoreet porttitor sem
    4. Ac tristique libero volutpat at
  3. Faucibus porta lacus fringilla vel
  4. Aenean sit amet erat nunc
  5. Eget porttitor lorem
{% endexample %}