Essential CSS
JavaScript Roadmap
Learn JavaScript
Mastering Web Typography
Practical Astro
Understanding Async JS
Unorthodox Tailwind
API Masterclass
Build and Deploy
The Beginner Freelancer
Real World Node
Profile Billing Logout
Mastering Web Typography
Lesson Plan
  1. Welcome
    1. Welcome to Mastering Responsive Typography!
  2. Web typography best practices
    1. What is Good Typography
    2. Typesetting — Font-size, Leading and Measure
    3. Choosing Font-sizes with Modular Scale
    4. Creating Harmony with Vertical Rhythm
    5. Combining Modular Scale and Vertical Rhythm
  3. Web typography typography fundamentals
    1. What is Good Typography
    2. Typesetting — Font-size, Leading and Measure
    3. Choosing Font-sizes with Modular Scale
    4. Creating Harmony with Vertical Rhythm
    5. Combining Modular Scale and Vertical Rhythm
  4. Design rules in typography
    1. The Principle of Repetition
    2. The Principle of Contrast
    3. The Principle of Alignment
    4. The Principle of Proximity
    5. Integrating The Four Principles
  5. Responsive typography practices
    1. Use Different Font-sizes for Different Devices
    2. Use Relative Units
    3. Choosing Relative Units
    4. Crafting A Responsive Modular Scale
    5. Automating Modular Scale Calculations
    6. Responsive Vertical Rhythm
    7. Putting Everything Together
  6. Bonus
    1. Communicating with Designers and Developers
    2. Typography code structure
    3. Rem vs Em
    4. Automating responsive typography with Typi

The Principle of Contrast

6m:42s

In the last lesson, you saw why the Principle of Repetition was important and how to use both in design and typography. In this lesson, we’ll dissect another principle — the Principle of Contrast.

You’ll learn:

  1. What the Principle of Contrast is.
  2. How contrast affects human psychology
  3. How to apply the Principle of Contrast to typography

Let’s begin.

What is the Principle of Contrast?

Contrast means to make one object different from the rest so it stands out. You can distinguish objects from each other by making attributes (like color, size, and shape) different from other elements:

Contrasting with color
Contrasting with color: The blue circle stands out because everything else is green
Contrasting with size: The big circle stands out because everything else is small
Contrasting with shape
Contrasting with shape: The triangle stands out because everything else are squares

You get the drift. Just make one object completely different and it stands out. That’s contrast.

Contrast is used for many different purposes, like giving warnings, grabbing attention, showing the relationship between two objects, etc.

For example, a wasp uses bright yellow and black to warn others not to come close. A flower, on the other hand, uses attractive colors to entice creatures towards it.

Contrast in Nature
Both wasps and flowers use contrast

The key to contrast is to make something so different that it stands out immediately.

How contrast affects human psychology

Remember the lizard brain? It’s here to help us stay alive. It enters into a flight or fight situation whenever it senses anything unexpected or unfamiliar.

Imagine you’re all alone in a forest. It’s dark. There are trees and bushes around you, but no one else in sight. It’s quiet, except for the sounds of crickets echoing in the dark forest.

Alone in the forest

Out of the corner of your eyes, you saw some bushes rustle. It’s a small movement, but you can’t make out what’s happening because it’s so dark.

Is something there? Should you run?

You brain kicks into high gear.

This reaction is normal. We want to know what’s lurking in the shadows so we can make a decision to save our skin.

The same reaction kicks in if elements are different by a bit on the web design. Watch how your brain reacts to this image below.

Different Shade of green

“Something is off” is likely to be your initial reaction when you noticed the slight difference in the shade of green.

You zoom in on the circle that’s slightly different. Your eyes focus on the offending circle while you begin to ask questions. But your questions remain unanswered, as always.

It’s the same process as what happened in the last lesson with the lonely circle, except it’s much stronger? Uncomfortable isn’t it.

Watch what happens we change to a color that stands out.

Better contrast

Your mind becomes quieter. Your eyes relax. Your attention first goes towards the blue circle, but you’re able to move away and relax soon after.

Now, watch what happens if we change the blue circle into a star.

Even more contrast

What did you notice?

The blue star stands out even more than the blue circle because we changed the shape as well. Your eyes zoom in quicker than before, but you relax quicker as well.

This exercise tells us that the Principle of Contrast affects humans even before we can consciously interpret what it’s trying to say. Without enough contrast, your visitors will feel extremely uncomfortable. They’ll be tensed up without even knowing what happened. Nobody likes that feeling, so they’ll flee from your website faster than you can imagine.

This also means you need to be bold about your contrast whenever you employ it.

Using contrast in typography

Contrast is used to create a visual hierarchy in typography. You use it to create attention grabbers, then proceed to guide visitors’ attention towards text.

The simplest way to create a visual hierarchy is through font-size. We have already done so in previous chapters by using Modular Scale.

Here’s an example:

Trent Walton's blog title grabs attention like magic
Trent Walton’s blog title grabs attention like magic

Notice Trent used a huge font-size for his article title. See how he creates a hierarchy and redirects your attention into the meat of the article.

You don’t necessarily need font-size to create contrast. There’s total of six ways:

  1. Change the font-size
  2. Change the font-weight
  3. Change the font-style
  4. Change the typeface
  5. Change the color
  6. Change word to uppercase, title case or lower case

These methods open up possibilities for you to style your typography elements differently. For example, you can change the style, weight, and color at the same time:

Trent Walton uses styles, weight and color
Trent Walton uses font-style, font-weight and color to differentiate between date and title elements

When you stack contrast in this manner, be careful not to add too much contrast to a point that it takes attention away from the most important thing on the page — the text.

For example, a large header with a heavy font-weight might be overdoing it if text that follows it are small. Watch what happens if I removed the intermediate font-size on Trent’s blog:

Intermediate font-size removed from Trent's article
Intermediate font-size removed from Trent’s article

Notice how the title caught and retained your attention. It refuses to redirect your attention to the main content of the page.

This example doesn’t mean you shouldn’t use a large font-size. It just means you need to be deliberate about how you create contrast. Look at Trent’s original design and see how he pulled it off beautifully.

Trent's original design
Trent’s original design

The key is to create a way to redirect a reader’s attention from the attention-grabbing element to the text you want them to read.

Balancing contrasts

The six ways mentioned above can be used to decrease contrast as well. For example, notice how I used a light gray text in this example below:

Decreasing Contrast
Reducing Contrast for less important elements

You can increase and decrease contrast at the same time too. One example is to use a lighter font-weight when you use a larger font-size.

Balancing contrast with font-weight
Balancing contrast with font-weight

Before we wrap up, here’s another example where Mike Riethmuller adds enough contrast to his header such that it stands out completely from the body text without being overbearing.

Notice your eyes get drawn first towards the title, then it moves automatically towards the text.

Wrapping up

You learned about the Principle of Contrast and how to apply it to typography in this lesson. You learned:

  1. What the Principle of Contrast is.
  2. How contrast affects human psychology
  3. How to apply the Principle of Contrast to typography

Remember, always be bold with your contrast, but don’t go overboard. If you find a reader (or yourself) focusing on anything other than what you want them to, then you know something needs tweaking.

Exercise

The Principle of Contrast adds a realm of possibilities for your typography. Try creating three subheader styles. Start by applying contrast to your typography in each of the six ways mentioned above:

  1. Change the font-size
  2. Change the font-weight
  3. Change the font-style
  4. Change the typeface
  5. Change the color
  6. Change word to uppercase, title case or lower case

Then, try combining two or more contrast-changing properties at once. Remove any assumption why things might not work when you do so. You invariably create the best contrast when you’re not consciously trying to control it.

Next up

Next up, I’ll show you the third principle — the Principle of Alignment.