A Visual Type Scale

A Visual Type Scale
A Visual Type Scale
A Visual Type Scale
A Visual Type Scale
A Visual Type Scale
A Visual Type Scale
A Visual Type Scale
A Visual Type Scale

Grab the CSS
@import url('https://fonts.googleapis.com/css?family=Poppins:400');

html {font-size: %;} /*px*/

body {
  background: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: #000000;
}

p {margin-bottom: 1rem;}

h1, h2, h3, h4, h5 {
  margin: 3rem 0 1.38rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.3;
}

h1 {
  margin-top: 0;
  font-size: rem;
}

h2 {font-size: rem;}

h3 {font-size: rem;}

h4 {font-size: rem;}

h5 {font-size: rem;}

small, .text_small {font-size: rem;}

How to Use

Small scales (less than 1.2) are subtle and good for both mobile and desktop apps, or the mobile version of a responsive site.

Medium scales (1.15–1.333) have a clear hierarchy, and help to organize sections with subheadings. A medium scale is versatile and works well for a wide variety of desktop sites, including blogs and marketing sites.

Large scales (1.333 or greater) may be challenging to implement effectively, but could work well for portfolios, agencies, some marketing sites, or avant-garde works.

REM vs. EM Values

The em value is the same as the rem value displayed above. Both units are scalable. The only difference between the two is that em is proportionate to its nearest parent that has a font-size, whereas rem is always relative to the <html> font-size. You can read more about these units from an article I wrote on the subject, Confused About REM and EM?

Additional Resources

Background

Tim Brown’s Modular Scale site raised awareness about type scales, helped to improve typography on the web, and it was the inspiration for this project.

© Copyright 2013– Jeremy Church.
Project available on GitHub.

A Crash Course in Web Design

What looked like a small patch of purple grass, above five feet square, was moving across the sand in their direction.

When it came near enough he perceived that it was not grass; there were no blades, but only purple roots. The roots were revolving, for each small plant in the whole patch, like the spokes of a rimless wheel.

A Crash Course in Web Design

What looked like a small patch of purple grass, above five feet square, was moving across the sand in their direction.

When it came near enough he perceived that it was not grass; there were no blades, but only purple roots. The roots were revolving, for each small plant in the whole patch, like the spokes of a rimless wheel.

A Crash Course in Web Design

What looked like a small patch of purple grass, above five feet square, was moving across the sand in their direction.

When it came near enough he perceived that it was not grass; there were no blades, but only purple roots. The roots were revolving, for each small plant in the whole patch, like the spokes of a rimless wheel.

A Crash Course in Web Design

What looked like a small patch of purple grass, above five feet square, was moving across the sand in their direction.

When it came near enough he perceived that it was not grass; there were no blades, but only purple roots. The roots were revolving, for each small plant in the whole patch, like the spokes of a rimless wheel.

A Crash Course in Web Design

What looked like a small patch of purple grass, above five feet square, was moving across the sand in their direction.

When it came near enough he perceived that it was not grass; there were no blades, but only purple roots. The roots were revolving, for each small plant in the whole patch, like the spokes of a rimless wheel.

— Excerpt from A Voyage to Arcturus, by David Lindsay.