Pure Typography can be used through Bower. It has a dependency on Pure, so you'll want to pull that in as well.
It's a total of 1kb minified + gzipped.
bower install pure-typography
You can fork it from Github too.
Fork from GithubPhoto Credit: Pierre Lesage // cc.
pure-type class
All styles should be used inside an element with a class name of pure-type. This way, you can use the Pure-Typography module with with other CSS on your page. Only elements within a parent element with the pure-type class name will be styled with this module.
Sometimes, you want a title and a lighter subtitle, like the one above this paragraph. You can do this by adding a title class to a heading, and a subtitle class to a sub-heading. This will adjust the margins to group the title and subtitle together without much spacing between them.
title and subtitle classes respectively. See the example below:
Here are the standard headings:
You can add the subhead class to a header element to achieve this effect:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Typography is the craft of endowing human language with a durable visual form. Anonymous
<code> elements are styled like this.
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.3.0/pure-min.css">
Here is some strong text.
Here is some text that we want to emphasize.
You can align text through the text-left, text-center, and text-right class names.
Text aligned to the left.
Text aligned to the center.
Text aligned to the right.
Add the muted class name to an element to add a muted color to the text within. See how this text has less contrast?
You can even have the muted effect on colored text.
Add the pure-ribbon class name to an element to add a ribbon effect. Ribbons come in various styles.
This is a default ribbon. Just add the pure-ribbon classname.
This is a success ribbon. Add the pure-ribbon pure-ribbon-success classes.
To show an error, use this ribbon. Add the pure-ribbon pure-ribbon-error classes.
To show an warning, use this warning ribbon. Add the pure-ribbon pure-ribbon-warn classes.
list class to style ordered and unordered lists. Add the plain class to remove the default browser styles.ul Default StylingAdd the list classes to an unordered list element to apply these styles.
ul Plain StylingAdd the list classes to an unordered list element to apply these styles.
ol Default StylingAdd the list classes to an ordered list element to apply these styles.
ol Plain StylingAdd the list plain classes to an ordered list element to apply these styles.