Skip to content
Tutorials Center
My learning

Topics

Lesson 13 of 37 ยท Layout and Design

Typography and Color Systems

Build a consistent type scale, line height and line length, spacing scale and light and dark color tokens, then apply them with Wix text themes and Webflow variables, with runnable generators.

Layouts organise a page, but typography is what people actually read, and color is what guides their eyes. A page with a clear type scale and a disciplined color system looks designed even with no images at all. The best way to get there in a builder is to create systems: a small set of reusable values chosen once and applied everywhere, instead of picking sizes and colors element by element.

This lesson shows how to build a type scale, choose line height and line length, define a spacing scale, and organise color into tokens. Stand-in generators compute the numbers so you can see the logic. You then apply the values through Wix text themes and design settings or Webflow variables and classes. The stand-ins are teaching tools, not builder features.

A modular type scale

A type scale is a list of font sizes where each step is a fixed ratio larger than the last. Common ratios include 1.2 (minor third), 1.25 (major third) and 1.333 (perfect fourth). Starting from a base body size of 16px and multiplying gives you consistent headings.

JS Stand-in: generate a modular type scale

Press Run (or Ctrl + Enter) to see the console output here.

No output.

A higher ratio gives stronger contrast between headings and body. Use a smaller ratio for dense interfaces and a larger one for editorial pages. In Webflow, set sizes on the base tag styles (h1 to h6, p) and express them in rem so users who raise their browser's default size still get proportional text. In Wix, set the site's text themes (headings and paragraph styles) and apply them to text rather than adjusting each box.

Line height and line length

Two small settings make large differences in readability.

  • Line height (leading): around 1.4 to 1.6 for body text, and tighter (1.1 to 1.3) for large headings. Unitless values scale with font size.
  • Line length (measure): roughly 45 to 75 characters per line is comfortable. A paragraph spanning a full 1400px screen is tiring to read. Limit the width with a max-width expressed in ch units, such as 65ch, or limit the container.
JS Stand-in: estimate characters per line

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Hierarchy through a few levers

Hierarchy is not only size. You have four main levers: size, weight, color and space. Use at most two or three at once. A heading might differ from body in size and weight; a caption differs in size and color. If everything is bold and large, nothing stands out.

flowchart LR
  H["Heading: large, bold, tight leading"] --> S["Subheading: medium, regular, muted color"]
  S --> B["Body: base size, 1.5 leading, 65ch"]
  B --> C["Caption: small, muted"]

Each level differs from the next in a controlled, repeatable way.

A spacing scale

Random gaps (13px here, 17px there) make a layout feel unplanned. Use a spacing scale based on a unit, such as 4px or 8px: 4, 8, 12, 16, 24, 32, 48, 64, 96. Webflow users can store these as variables, and you can use the same scale for padding, gaps and section spacing. In Wix, apply consistent spacing values and use the same container padding across sections.

Color tokens: names, not just values

A token is a named value that expresses a role, such as text, background, primary, border. Components reference the token, never the raw hex. This enables themes: a dark mode only changes what the tokens point to.

JS Stand-in: light and dark color tokens

Press Run (or Ctrl + Enter) to see the console output here.

No output.

The same token names work in both modes, and each mode is checked for contrast independently. In Webflow, variables with modes can represent this (a color variable can have different values per mode). In Wix, theme colors let you swap a palette; check each result with a contrast tool.

Applying the systems

In Webflow:

  1. Create color, size and font variables for the tokens above.
  2. Set body typography (font family, size, line height, color).
  3. Style h1 to h6 and p as tag styles using the scale.
  4. Create utility classes sparingly (for example text-muted, max-width-prose).
  5. Build a style guide page to preview everything.

In Wix:

  1. Set the site color palette and text themes.
  2. Apply heading styles from the theme instead of styling each text manually.
  3. Use consistent container padding and spacing values.
  4. Review the result on mobile, where font size and line length change.

Common mistakes

  • Body text smaller than 16px, especially on mobile.
  • Light thin fonts on busy backgrounds.
  • All-caps paragraphs, which are slow to read.
  • Justified text in narrow columns, which creates rivers of white space.
  • Center-aligning long paragraphs. Left-align body copy in left-to-right languages.
  • Too many weights and sizes.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is a modular type scale?

    Each step multiplies the previous size by the same ratio, which keeps hierarchy consistent.
  2. 2. Which line length is generally comfortable for body text?

    Roughly 45 to 75 characters per line is easiest to read.
  3. 3. Why use named color tokens such as text and background?

    Tokens describe roles, so switching the mapping (such as dark mode) updates everything consistently.
  4. 4. Which unit lets text scale with a user's browser font setting?

    rem is relative to the root font size, so it respects user preferences.

Summary

  • Build a modular type scale, with line height around 1.5 for body and a measure of 45 to 75 characters.
  • Create hierarchy with size, weight, color and space, using few levers at once.
  • Use a spacing scale and color tokens so values are named by role.
  • Apply systems through Webflow variables and tag styles or Wix text themes and palettes, and check contrast per mode.

Next: Responsive Design and Breakpoints