Web Design for Developers / Module 12

Module 12: Capstone: A Design Process and a Small Design System

Design a new page from a text brief with an eight-step design process, critique it with a checklist from eleven modules, and document a design system.

Stashling needs a fifth page, a pricing page. Nobody has drawn it, so all you get is the text below, from the project’s maintainers.

Pricing page, from the Stashling maintainers

Goal: people who have no storage of their own pick a hosted plan.
People who have storage see that Stashling costs them nothing.

Plans
- Free: $0. Their own storage: USB drive, NAS, SFTP server, S3 bucket.
  Help on the community forum.
- Hosted 100 GB: $2 a month. Up to 3 computers. Email when a backup
  fails. Help by email. We want most new users on this plan.
- Hosted 1 TB: $8 a month. Up to 10 computers. Otherwise as 100 GB.

Every plan: encrypted on your computer, settings and restore on the web.

Questions people ask
- Can you read my files? No. Files are encrypted with their own key.
- What happens when storage is full? Backups stop, and we send an email.
- Can I move to my own storage later? Yes. They download the repository.

Figure 1: the pricing page as it reaches you. It has content and a goal, and no layout.

Modules 1 to 11 each fixed one page that looked or worked wrong. This page has nothing to fix yet, and that’s harder, because you decide everything, in an order. So this module teaches a design process that uses the eleven modules on a page you’ve never seen, and no new visual rule. Then come a critique checklist, a small design system, and what a design tool adds.

After this module, you can:

  • design a page from a text brief with an eight-step design process, and name the module each step draws on
  • critique a page with a checklist built from Modules 1 to 11, and give and take critique tied to the page’s goal
  • document a small design system on one page, and say what a larger system adds and when it’s worth what it costs
  • say what a design tool such as Figma or Penpot does better than the browser, and what the browser does better
  • design a page alone and get useful feedback on it, from people or from an AI tool

To follow along, start from the module-11 folder of the course repository, github.com/vespaiach/web-design-course. The finished files are in its module-12 folder.

A design process in eight steps

Each module so far started from a page that was wrong and ended with one change. But a new page has no wrong version to start from. A design process is the order in which you make the decisions. The early ones, such as what the page is for, are settled before the late ones, such as a border width.

This course uses eight steps:

  1. Gather references: look at pages that already solve the same problem.
  2. Find the content and its hierarchy: list everything the page must say, and rank it.
  3. Sketch on paper or in gray boxes: place the ranked content, without styling.
  4. Apply the tokens: decide which existing token each part uses.
  5. Build: write the HTML and the page’s CSS.
  6. Critique: check the page against a list, and against its goal.
  7. Change one thing: fix the worst finding, and nothing else.
  8. Repeat: go back to step 6 until the findings left are ones you accept.

These steps are our arrangement, but the best-known description of design work is older and broader. The UK Design Council’s Double Diamond splits a project into four phases, Discover, Define, Develop and Deliver, drawn as two diamonds (Design Council, Framework for Innovation).

Each diamond has two halves. Divergent thinking widens the options: many references, many sketches. Convergent thinking narrows them to one: one brief, one page. Figure 2 places the eight steps on the two diamonds.

      Discover    Define                  Develop        Deliver
         /-----------\                      /----------------\
  ------<   1      2  >---- brief ---------<  3  4  5   6 7 8 >---- page
         \-----------/                      \----------------/
         widen  narrow                      widen      narrow
                                                        ^   |
                                                        +---+
                                            8: back to 6 until it passes

Figure 2: the eight steps on the Double Diamond. The first diamond ends in a brief; the second ends in a page.

Step Phase What you decide Module the idea comes from
1 Gather references Discover which conventions people will expect 11 (conventions, Jakob’s Law)
2 Content and hierarchy Define what the page says, in what order of importance 1 (hierarchy), 10 (the words)
3 Sketch Develop where each part goes, at two widths 1 (grouping), 2 (spacing), 7 (layout)
4 Apply the tokens Develop which token each part uses 2 to 6, 8 and 9 (the token file)
5 Build Develop the HTML and the page’s CSS 7 to 10
6 Critique Deliver what is wrong, and how bad it is 1 to 11 (the checklist), 11 (severity)
7 Change one thing Deliver the one fix to try 9 and 11 (one change per before and after)
8 Repeat Deliver whether to stop 11 (severity)

The mapping of our steps onto the phases is ours, not the Design Council’s. The council built the model from its own projects, so it describes practice and isn’t a tested finding. Its own page says the process isn’t linear. Arrows go back, and testing can be part of discovery.

The council’s history page says the question behind the model came up in 2003, and the council began presenting the diagram in 2004 (Design Council, history of the Double Diamond). It credits earlier diamond drawings at Whirlpool and IDEO, and says its own part was to codify and name it. Third-party sites give 2003, 2004 or 2005, but we use the council’s account. The council’s newer Systemic Design Framework renames the phases Explore, Reframe, Create and Catalyse, for work on larger systems.

The cost of a process is time, so if you’re making a one-line change, steps 1 to 4 are wasted. But if you skip them on a new page, you make the hierarchy decisions while writing CSS, one property at a time. That’s how the sample site got its planted problems.

Rule: Settle what the page is for and what it says before you decide how any part looks.

Designing the pricing page, step by step

This section is the lab. Each step says why, what you do, the code, and what you should see. Start from the module-11 folder.

Step 1: gather references

Why: people bring their expectations from other sites (Module 11, Jakob’s Law), and a pricing page is a page they’ve seen many times.

Open three or four pricing pages of tools you pay for, or have considered. Spend five minutes, and for each one, write down:

  • where the plans sit, and in which order
  • how one plan is marked as the one to pick, if one is
  • where the details go: on the plans, in a table, or in a list of questions
  • what the button or link in each plan says

Don’t copy a page. You’re collecting the conventions that your visitors will expect, so that you break one only on purpose.

What you should see: a short list of shared patterns. The pricing page below uses this arrangement: plans side by side from the cheapest to the most expensive, one marked, a comparison table under them, and questions at the end. Your list may suggest another.

Step 2: find the content and its hierarchy

Why: hierarchy is the order in which the eye should find things (Module 1), so you can set it only once you know what matters most. The brief’s goal says what that is.

Write the content of Figure 1 as a ranked list, most important first:

1. The answer: free on your own storage, or hosted from $2
2. The three plans: name, price, who it is for, one action each
3. Which plan to pick, if you have no storage (the brief: 100 GB)
4. The details that differ: storage, computers, email, help
5. The details that are the same: encryption, the web console
6. The three questions

The nav already says “Pricing”, so the title can answer the visitor’s question instead. Module 10 showed that the words on a page are part of its design.

Pause and predict: the brief wants most new users on Hosted 100 GB. Which visual signals should mark that plan, and which one must never be the only signal?

Answer

Several signals that point the same way. The plan’s action can be the page’s only filled button (Module 1, one primary action). Its edge can be thicker and in the accent color (Module 9). It can carry a word, such as “Recommended” (Module 8: a visible word beside the signal).

Color must never be the only signal. WCAG 1.4.1 forbids color as the only visual way to convey information (Module 6), and a blue edge alone says nothing about why that plan is different.

What you should see: a list like the one above, with one item at the top.

Step 3: sketch in gray boxes

Why: a sketch tests the order and the grouping (Modules 1, 2 and 7) before any color or font can distract you.

A wireframe is a sketch of a page as plain boxes, each labeled with what it will hold, with no visual styling. Paper is enough, but we used a small HTML file, so the boxes can reflow at a phone width too. Create sketch.html:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Pricing sketch - Stashling</title>
  <style>
    /* A sketch: gray boxes in the order and rough size of the content. No tokens, no colors. */
    body { margin: 16px; font: 14px sans-serif; color: #444; }
    div { background: #ddd; padding: 8px; margin-bottom: 12px; }
    .plans { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; background: none; }
    .plan { flex: 1 1 200px; margin: 0; background: #eee; }
    .plan div { margin-bottom: 8px; }
    .big { font-size: 28px; }
    .tall { height: 160px; }
  </style>
</head>
<body>
  <div>Header: logo, nav with Pricing, Settings</div>
  <div class="big">Title: free on your own storage, or hosted from $2</div>
  <div>One line: every plan runs the same Stashling</div>
  <div class="plans">
    <div class="plan">
      <div>Free</div>
      <div class="big">$0</div>
      <div>Your own drive, NAS, SFTP or S3</div>
      <div>Action: Download</div>
    </div>
    <div class="plan">
      <div>Hosted 100 GB (recommended: how?)</div>
      <div class="big">$2 a month</div>
      <div>One computer</div>
      <div>Action: Sign up</div>
    </div>
    <div class="plan">
      <div>Hosted 1 TB</div>
      <div class="big">$8 a month</div>
      <div>Several computers</div>
      <div>Action: Sign up</div>
    </div>
  </div>
  <div class="tall">Table: the three plans as columns, about 7 rows</div>
  <div class="tall">Three questions: privacy, a full plan, leaving</div>
  <div>Footer</div>
</body>
</html>

The sketch uses plain pixel values on purpose, because it’s thrown away and tokens would slow it down. Figure 3 shows it at 1280 pixels.

Figure 3: the sketch at 1280 pixels. The prices are the large boxes, and the question of how to mark the 100 GB plan is still open.

The sketch makes two decisions. The price is the largest text in each plan, because the price is what people compare. The plans stack on a phone, because three columns don’t fit at 390 pixels (Module 7). But how to mark the recommended plan is left open on purpose.

A style tile is a related tool from Samantha Warren: one page of fonts, colors and interface samples (Warren, A List Apart, 2012). She describes it as more finished than a mood board and less literal than a full mockup. It separates the look from the layout, as the sketch separates the layout from the look. Warren’s own limit is that it shows no real content, so some people can’t picture the page from it. The sample site already has its look in tokens.css, so you don’t need a style tile here; the design system page at the end of this lab plays that role.

What you should see: Figure 3. Narrow the window, and the three plans stack.

Step 4: apply the tokens

Why: the tokens are decisions already made (Modules 2 to 9), so writing the HTML first shows how much of the page they style before you write any page CSS.

Start with the nav, which every page shares. In each of the four HTML files, add this line after the Features link:

      <a href="pricing.html">Pricing</a>

Pause and predict: Module 11 measured that the header needs 608 px on one line, and set the menu breakpoint at 39rem, 624 px. “Pricing” adds a word. What happens between 624 px and the new width the header needs?

Answer

The header wraps onto two lines. In Chrome 157 at a 16 px default font, it’s about 85 px tall from 624 to 682 px, and one 64 px row from 683 px. Figure 4 shows it at 660 px.

We measured the width with the same script as Module 11, minwidth.mjs, at 1 px steps, and the header now needs 683 px. In base.css, replace the comment and first line of the narrow-screen media query with these two lines:

/* Below 44rem the header does not fit on one line (it needs 683px), so the nav becomes a menu */
@media (width < 44rem) {

Then change @media (width >= 39rem) { to this line:

@media (width >= 44rem) {

44rem is 704 px, 21 px more than the header needs. 43rem would leave 5 px, so a fallback font a little wider than Inter could wrap it. As in Module 7, the content chooses the breakpoint, and you measure it again whenever the content changes. Figure 4 compares the two breakpoints at 660 pixels.

Figure 4: the header at 660 pixels with the old and the new breakpoint. Below 704 pixels the nav is a menu.

Now the page. Copy settings.html to pricing.html, and make five changes in the copy:

  1. The title becomes <title>Pricing - Stashling</title>.
  2. The page’s stylesheet becomes <link rel="stylesheet" href="pricing.css">.
  3. The Pricing link becomes <a href="pricing.html" aria-current="page">Pricing</a>.
  4. The Settings link loses its aria-current: <a class="settings-link" href="settings.html">.
  5. Replace everything from <main to </main> with the following.
  <main class="content pricing">
    <div class="intro">
      <h1>Free on your own storage, or hosted from $2 a month</h1>
      <p>Every plan runs the same Stashling: encrypted on your computer, deduplicated, open source. You pay only if Stashling stores the backups for you.</p>
    </div>

    <div class="plans">
      <section class="plan" aria-labelledby="plan-free">
        <h2 id="plan-free">Free</h2>
        <p class="price">$0 <span>a month</span></p>
        <p>Back up to a USB drive, a NAS, an SFTP server or an S3 bucket you already have.</p>
        <a class="button" href="index.html#download">Download 2.4</a>
      </section>
      <section class="plan plan-recommended" aria-labelledby="plan-100">
        <h2 id="plan-100">Hosted 100 GB</h2>
        <p class="price">$2 <span>a month</span></p>
        <p>Stashling stores your encrypted backups. Enough for the documents and photos of one computer.</p>
        <a class="button" href="signup.html">Sign up for 100 GB</a>
      </section>
      <section class="plan" aria-labelledby="plan-1tb">
        <h2 id="plan-1tb">Hosted 1 TB</h2>
        <p class="price">$8 <span>a month</span></p>
        <p>For several computers, or a large photo or video library.</p>
        <a class="button" href="signup.html">Sign up for 1 TB</a>
      </section>
    </div>

    <section>
      <h2 id="compare-title">Compare the plans</h2>
      <div class="table-scroll" role="region" aria-labelledby="compare-title" tabindex="0">
      <table>
        <thead>
          <tr>
            <td></td>
            <th scope="col">Free</th>
            <th scope="col">Hosted 100 GB</th>
            <th scope="col">Hosted 1 TB</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th scope="row">Price a month</th>
            <td>$0</td>
            <td>$2</td>
            <td>$8</td>
          </tr>
          <tr>
            <th scope="row">Storage</th>
            <td>Your own</td>
            <td>100 GB</td>
            <td>1 TB</td>
          </tr>
          <tr>
            <th scope="row">Computers</th>
            <td>No limit</td>
            <td>3</td>
            <td>10</td>
          </tr>
          <tr>
            <th scope="row">Encrypted on your computer</th>
            <td>Yes</td>
            <td>Yes</td>
            <td>Yes</td>
          </tr>
          <tr>
            <th scope="row">Settings and restore on the web</th>
            <td>Yes</td>
            <td>Yes</td>
            <td>Yes</td>
          </tr>
          <tr>
            <th scope="row">Email when a backup fails</th>
            <td>No</td>
            <td>Yes</td>
            <td>Yes</td>
          </tr>
          <tr>
            <th scope="row">Help</th>
            <td>Community forum</td>
            <td>Email</td>
            <td>Email</td>
          </tr>
        </tbody>
      </table>
      </div>
    </section>

    <section class="questions">
      <h2>Questions about the plans</h2>
      <div>
        <h3>Can Stashling read my files?</h3>
        <p>No. Your files are encrypted with your own key before they leave your computer, on every plan.</p>
      </div>
      <div>
        <h3>What happens when my storage is full?</h3>
        <p>New backups stop, and you get an email. Move to the next plan, or keep fewer days of snapshots under Settings.</p>
      </div>
      <div>
        <h3>Can I move from hosted storage to my own later?</h3>
        <p>Yes. Your repository is yours. Download it from Settings, point Stashling at the new place, and cancel the plan.</p>
      </div>
    </section>
  </main>

Notice what the markup already decides. Each plan is a section named by its heading, so a screen reader can list the plans. The table reuses the settings page’s scroll box from Module 7, with scope on every header cell. Every action is a .button, the component Module 9 built; Step 7 comes back to that.

pricing.css doesn’t exist yet, but open pricing.html anyway. Figure 5 shows what the tokens already do.

Figure 5: the pricing page with only tokens.css and base.css. Fonts, sizes, colors, links, buttons and the header come from the tokens; the layout doesn’t exist yet.

Here’s how the parts of the sketch map to tokens before any page CSS:

Part Token Set by
Title --size-title pricing.css in Step 5 (as on the landing page)
Plan name --step-2 base.css (h2)
Price --step-0 base.css (body)
Plan edge and table lines --color-border, --radius-large pricing.css in Step 5
Gaps --space-between, --space-inside, --space-5, --space-2 pricing.css in Step 5
Actions .button: --color-accent, --radius-small base.css
Intro text --color-text, --measure base.css (body), and pricing.css in Step 5

What you should see: Figure 5, and the header with Pricing underlined.

Step 5: build

Why: the layout is the part the tokens can’t give you (Module 7). Every value below is a token, so the page matches the others without a new decision about color, size or space.

Create pricing.css:

/* Pricing page: the plans side by side, then the table and the questions */
.pricing {
  display: flex;
  flex-direction: column;
  gap: var(--space-between);
  padding-block: var(--space-6);
}

.pricing h1,
.pricing h2,
.pricing h3,
.pricing p {
  margin: 0;
}

.pricing > .intro,
.pricing > section {
  display: flex;
  flex-direction: column;
  gap: var(--space-inside);
}

.pricing h1 {
  font-size: var(--size-title);
}

.pricing .intro p,
.questions {
  max-inline-size: var(--measure);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-5);
}

/* Each plan spans four rows of .plans (name, price, text, action), so the parts line up */
.plan {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  justify-items: start;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  padding: var(--space-5);
}

.plan-recommended {
  border-color: var(--color-accent);
}

.price {
  font-weight: bold;
}

.price span {
  color: var(--color-muted);
  font-weight: normal;
}

/* The table keeps its columns and scrolls inside this box, as on the settings page */
.table-scroll {
  max-inline-size: 100%;
  overflow-x: auto;
}

.pricing table {
  border-collapse: collapse;
}

.pricing th,
.pricing td {
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-3);
  text-align: start;
}

/* A question and its answer sit closer to each other than to the next question */
.questions div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

Most of this file repeats a pattern from an earlier module. The page is a flex column with --space-between gaps, like the settings page (Module 2). The plans are cards on a grid with subgrid rows, like the landing page’s features (Module 7). The table rules repeat the settings table’s (Modules 7 and 10). The questions are groups with a small gap inside and a larger one between (Module 2).

Each plan is 368 px wide at 1280. minmax(15rem, 1fr) puts three plans in a row from an 800 px window (768 px of content), and one per row on a phone.

The price is bold and nothing more, because this is the build as a developer types it in one pass, shown in Figure 6. Then the next step looks at it with fresh eyes.

Figure 6: the first build at 1280 pixels. It works, and every value comes from a token.

What you should see: Figure 6 at 1280. At 390 the plans stack, and the table scrolls inside its box.

Step 6: critique

Why: you can’t see your own page as a visitor does while you build it. A design critique is a review of a design against its goals, with the aim of improving it (Gibbons, NN/g, 2016). A list keeps the review from following your taste of the day.

Run the checklist from the next section, “A critique checklist from eleven modules”, on Figure 6 and on the page at 390. Give each finding a severity from 0 to 4 (Module 11).

Pause and predict: squint at Figure 6, or blur it in DevTools (Module 1). In each plan, what do you see first? Then count the filled buttons on the page.

Answer

The plan names. They’re h2 at 28.1 px, and the prices are 18 px bold, so the thing people compare isn’t the thing they see first. There are three filled blue buttons, so no action is primary.

Our findings, with our severity ratings:

# Finding Checklist item Severity
1 The prices are smaller than the plan names; the squint test finds the names first 1 Hierarchy, 4 Text setting 3
2 Three filled buttons, so no plan’s action is the primary one 1 Hierarchy, 9 Components 2
3 The recommended plan differs only by its edge color, and nothing says why 6 Contrast and themes (WCAG 1.4.1), 8 Labels 2
4 On a phone, the table scrolls 31 px sideways and its row labels wrap onto three or four lines 7 Layout, 10 Tables 1
5 The table’s numbers are aligned to the start, not the end 10 Tables 0

Finding 5 isn’t a problem here. Module 10 aligns numbers to the end so that people can compare them down a column. But in this table, each column is one plan, and people compare across a row, from plan to plan. A rule applies where its reason applies.

Another reviewer would rate some of these differently, and would find others (Module 11: one reviewer finds a fifth to a half of the problems).

What you should see: your own list, which may differ from ours.

Step 7: change one thing

Why: if you change three things at once and the page gets worse, you can’t tell which change did it. So one change per round gives you a before and an after that differ in only that change, as every figure in this course has.

Fix finding 1 first, because it has the highest severity. In pricing.css, replace the .price and .price span rules with these three rules:

/* The plan's name steps down, so the price below it can lead */
.plan h2 {
  font-size: var(--step-1);
}

/* The price is what people compare, so it is the largest text in a plan */
.price {
  font-size: var(--step-3);
  font-weight: bold;
  line-height: var(--leading-heading);
}

.price span {
  color: var(--color-muted);
  font-size: var(--step-0);
  font-weight: normal;
}

The name goes down one step and the price goes up three steps, so they trade places in size. At 1280 the name is 22.5 px and the price 35.2 px. “a month” stays at body size, in the muted color, so the number stands alone. Figure 7 shows the plans before and after.

Figure 7: change 1. The price is now the first thing the eye finds in each plan.

Then finding 2. In pricing.html, change the Free plan’s action to this line:

        <a href="index.html#download">Download 2.4</a>

And the 1 TB plan’s action to this line:

        <a href="signup.html">Sign up for 1 TB</a>

They become plain links, which base.css already underlines in the link color (Module 9). This is the landing page’s pattern from Module 1: one button, and the other actions as links. Figure 8 shows the result.

Figure 8: change 2. One filled button on the page, in the plan the brief wants most people to choose.

Then finding 3. In pricing.html, add this line as the first line inside the 100 GB plan’s section:

      <p class="plan-label">Recommended</p>

In pricing.css, replace the .plan-recommended rule with these two rules:

/* The recommended plan says so in words, and its edge is thicker as well as blue */
.plan-recommended {
  position: relative;
  border: 2px solid var(--color-accent);
}

/* The label sits on the top edge, so it adds no row and the prices stay in line */
.plan-label {
  position: absolute;
  top: 0;
  left: var(--space-5);
  transform: translateY(-50%);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-small);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--step--1);
  font-weight: 600;
}

The label is positioned out of the flow, so it isn’t a fifth item in the plan’s subgrid, and the prices of all three plans stay on one line. Its colors are the button’s pair, already checked in Module 6: 4.60:1 in the light theme and 8.43:1 in the dark one. The 2px edge is the same accent against the page, so it passes the 3:1 that WCAG 1.4.11 asks of interface parts. Figure 9 shows the label in place.

Figure 9: change 3. The plan says in words why it looks different.

But the label costs something. Absolute positioning takes it out of the layout, so nothing makes room for it. If a label is too long for the plan’s width, it wraps onto a second line that reaches down to the plan’s name. So test it again in another language, or at a larger default font.

What you should see after the three changes: Figure 10 at 1280, and Figure 11 at 390 in the dark theme.

Figure 10: the pricing page after the critique, at 1280 pixels.

Figure 11: the same page at 390 pixels in the dark theme. The tokens’ dark values apply without a line of new CSS.

Step 8: repeat

Why: each change can create a problem, and the findings you left still exist.

Run the checklist again on Figures 10 and 11. Ours found nothing new from the three changes, but finding 4 is still open. On a phone, the table is 389 px wide in a 358 px box, and its labels wrap, as Figure 12 shows.

Figure 12: finding 4, the next round’s candidate. Nothing breaks, but the last column hides behind a sideways scroll.

It has severity 1, and every plan’s main facts are already in the cards above the table. So we stopped here and wrote it down. Your next round could shorten the row labels, or show one table per plan below 44rem.

Stopping is part of the process, and Module 11’s severity scale tells you when. Stop when the findings left are cosmetic, or cost more to fix than they hurt.

A critique checklist from eleven modules

A critique checks a design against its goals (Step 6). If nobody states the goals, feedback turns into taste, such as “I like blue more”. So the checklist below gives each comment a reason, and the brief gives it a goal.

# Item Check Module
1 Hierarchy Squint or blur: the first strong shape is the most important thing; one primary action per view 1
2 Grouping and spacing Gaps inside a group are smaller than gaps between groups; every gap is a scale step 2
3 Typeface One family; it covers the content’s languages; code in the code stack 3
4 Text setting Sizes from the scale; about 65 characters per line; still works at 200% zoom 4
5 Value In grayscale, the order of importance still reads 5
6 Contrast and themes 4.5:1 for text, 3:1 for large text and interface parts, in both themes; no meaning in color alone 6
7 Layout Works at 320, 390 and 1280; no sideways page scroll; breakpoints set by the content 7
8 Images and icons Every image has a job; alt text says the job; icons from one set, with words 8
9 Components and states Links look like links; hover, focus, pressed and disabled all visible; targets 24 px or more 9
10 Forms and tables Labels above fields, hints before errors, errors in words; numbers aligned where people compare them; empty states 10
11 Usability Conventions kept or broken on purpose; current page marked; heuristics 4, 6 and 1 11

The list doesn’t replace people, because it finds what the course taught and nothing else. A visitor who doesn’t understand “S3 bucket” is a finding no checklist item covers, but the five-person test from Module 11 finds that kind.

Giving critique

NN/g’s guide sets a few rules for a critique session:

  • Agree on the goals before anyone comments. For the pricing page, the brief’s two goals.
  • Keep it to a set scope and time, and share the design before the meeting.
  • Have a moderator turn opinions and orders into questions about the goals. “Make the price bigger” becomes “Does the price stand out enough for people comparing plans?”
  • Start with a fixed number of positive and negative comments, so the session doesn’t become a list of faults.
  • Don’t solve problems in the meeting. Write them down.

Adam Connor and Aaron Irizarry recommend the same tie in their book Discussing Design (O’Reilly, 2015): every comment refers to the design’s goal. We couldn’t open the book itself, so we cite it only for that recommendation.

Taking critique

When your design is the one under review, NN/g’s advice is short. Restate the goals and who the page is for. Ask for feedback on specific parts. Don’t explain every decision, and don’t take the comments personally.

A comment you disagree with is still data, so ask which goal it relates to. If it relates to none, it’s taste, and you may thank the person and leave it.

Critique on your own

Most readers of this course design alone, but a solo critique loses the second pair of eyes, so put distance between building and reviewing:

  1. Wait a day, or at least an hour, before the review.
  2. Use tests that work even when your eyes are tired: squint or blur (Module 1), grayscale (Module 5), contrast numbers (Module 6), three widths (Module 7).
  3. Go through the checklist item by item, and write a severity for each finding.
  4. Ask an AI tool for feedback on a screenshot, with the prompt in “Two pages to design on your own” below. Give it the goals first. Like a human critic, it can’t judge a design whose goals it doesn’t know.

Rule: State the goal before you ask for a comment, and tie every comment you give to that goal.

The design system, on one page

A design system is a complete set of standards that manages design at scale with reusable components and patterns (Fessenden, NN/g, 2021, reviewed 2026). The sample site has a small one. Its standards are tokens.css, the shared rules in base.css, and a few components that every page reuses.

The pricing page showed what that buys. It needed no new token, and the token table in Step 4 found a size, a color or a space for every part. The changes in Step 7 came from the same files.

The final token file

tokens.css has 64 custom properties in its :root rule, plus the fallback for browsers without light-dark(). Module 12 didn’t change it. In short:

Space     --space-1..8: 4 8 12 16 24 32 48 64 px; inside 16, between 48
Type      Inter; --step--1..4, fluid, 1.2 to 1.25; --size-title = step 4
Text      --measure 50ch; leading 1.5 and 1.2; tracking -0.02em
Layout    --page-max 72rem; --page-margin max(16px, centered)
Color     neutral, blue, red scales; 15 semantic roles with light-dark()
Status    ok, running, failed: oklch(0.75 0.14 145 / 85 / 30)
Parts     icon 24px; targets 44px and 24px; radius 4px and 8px; 1 shadow
Motion    100ms and 200ms; ease-out
The full tokens.css
/* Design tokens: named values that the other CSS files use. */
:root {
  /* Spacing scale on a 4px base. 1rem is 16px at the browser default. */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem;  /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem;    /* 16px */
  --space-5: 1.5rem;  /* 24px */
  --space-6: 2rem;    /* 32px */
  --space-7: 3rem;    /* 48px */
  --space-8: 4rem;    /* 64px */

  /* Spacing by meaning */
  --space-inside: var(--space-4);  /* between items of one group */
  --space-between: var(--space-7); /* between groups */

  /* Type. Both stacks are from modernfontstacks.com (CC0). */
  --font-text: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
  --font-code: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;

  /* Type scale: fluid from a 320px to a 1280px viewport,
     ratio 1.2 from 16px, growing to ratio 1.25 from 18px. */
  --step--1: clamp(0.8333rem, 0.8111rem + 0.1111vw, 0.9rem);     /* 13.33 to 14.40px */
  --step-0: clamp(1rem, 0.9583rem + 0.2083vw, 1.125rem);         /* 16.00 to 18.00px */
  --step-1: clamp(1.2rem, 1.1312rem + 0.3438vw, 1.4063rem);      /* 19.20 to 22.50px */
  --step-2: clamp(1.44rem, 1.3341rem + 0.5297vw, 1.7578rem);     /* 23.04 to 28.13px */
  --step-3: clamp(1.728rem, 1.5716rem + 0.7821vw, 2.1973rem);    /* 27.65 to 35.16px */
  --step-4: clamp(2.0736rem, 1.8493rem + 1.1216vw, 2.7466rem);   /* 33.18 to 43.95px */
  --size-title: var(--step-4); /* the one largest text on a page */

  --measure: 50ch;          /* text column: about 65 characters of Inter */
  --leading-body: 1.5;      /* line height of text */
  --leading-heading: 1.2;   /* line height of headings */
  --tracking-tight: -0.02em; /* large headings */

  /* Layout: one content column, centered, with a margin on each side */
  --page-max: 72rem;            /* widest content column: 1152px */
  --margin-min: var(--space-4); /* page margin on a narrow screen: 16px */
  --page-margin: max(var(--margin-min), (100% - var(--page-max)) / 2);

  /* Icons: one set, Lucide, drawn on a 24px grid with a 2px stroke */
  --icon-size: 1.5rem; /* 24px, the set's own grid, so every stroke draws 2px wide */

  /* Targets: WCAG 2.5.8 (AA) asks for 24px; 44px is WCAG 2.5.5 (AAA) and Apple's default */
  --target-min: 2.75rem; /* 44px */
  --target-small: 1.5rem; /* 24px: checkboxes, which have a label or a row to share the tap */

  /* Corners: a small radius for controls, a large one for the boxes around them */
  --radius-small: 0.25rem; /* 4px: buttons, status labels, links in the menu */
  --radius-large: 0.5rem;  /* 8px: cards, the sign-up form, the menu */

  /* Depth: Material 3's level 3, a sharp key shadow and a soft ambient one */
  --shadow-raised: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 4px 8px 3px rgb(0 0 0 / 0.15);

  /* Motion. The numbers are conventions (NN/g, Material Design), not research findings */
  --duration-fast: 100ms;   /* feedback, such as a hover color */
  --duration-medium: 200ms; /* a menu that opens */
  --ease-out: cubic-bezier(0, 0, 0.2, 1); /* starts at full speed, slows to a stop */

  /* Color scales: one OKLCH lightness per step, the same in every hue.
     Only the steps the site uses, as sRGB hex after gamut mapping. */
  --neutral-0: #ffffff;   /* L 1.00 */
  --neutral-100: #e8e8e8; /* L 0.93 */
  --neutral-300: #bebebe; /* L 0.80 */
  --neutral-400: #a4a4a4; /* L 0.72 */
  --neutral-700: #5d5d5d; /* L 0.48 */
  --neutral-900: #333333; /* L 0.32 */
  --neutral-950: #222222; /* L 0.25 */
  --blue-300: #77c4ff;    /* L 0.80, hue of the brand blue #3ea6ff */
  --blue-600: #0078cd;    /* L 0.56 */
  --red-300: #ff998d;     /* L 0.80, hue 27 */
  --red-600: #d02c2a;     /* L 0.56 */

  /* Status labels: one OKLCH lightness and chroma, three hues */
  --color-status-ok: oklch(0.75 0.14 145);      /* #71c575 */
  --color-status-running: oklch(0.75 0.14 85);  /* #d6a62e */
  --color-status-failed: oklch(0.75 0.14 30);   /* #fa8978 */

  /* Semantic colors: light-dark(light theme, dark theme) */
  color-scheme: light dark;
  --color-surface: light-dark(var(--neutral-0), var(--neutral-950));
  --color-surface-alt: light-dark(var(--neutral-100), var(--neutral-900));
  --color-text: light-dark(var(--neutral-950), var(--neutral-100));
  --color-muted: light-dark(var(--neutral-700), var(--neutral-400));
  --color-border: light-dark(var(--neutral-300), var(--neutral-700));
  --color-bar: light-dark(var(--neutral-950), var(--neutral-900));
  --color-on-bar: light-dark(var(--neutral-0), var(--neutral-100));
  --color-accent: light-dark(var(--blue-600), var(--blue-300));
  --color-on-accent: light-dark(var(--neutral-0), var(--neutral-950));
  --color-link: var(--color-accent); /* one blue for everything you can act on */
  --color-focus: var(--color-accent); /* 3:1 or more on surface, surface-alt and bar, both themes */
  --color-field-border: var(--color-muted); /* the edge of a field: 3:1 or more on surface (WCAG 1.4.11) */
  --color-danger: light-dark(var(--red-600), var(--red-300));
  --color-on-danger: light-dark(var(--neutral-0), var(--neutral-950));
  --color-on-status: var(--neutral-950);
}

/* Browsers without light-dark() (before Chrome 123, Firefox 120, Safari 17.5)
   get the light theme only. */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    color-scheme: light;
    --color-surface: var(--neutral-0);
    --color-surface-alt: var(--neutral-100);
    --color-text: var(--neutral-950);
    --color-muted: var(--neutral-700);
    --color-border: var(--neutral-300);
    --color-bar: var(--neutral-950);
    --color-on-bar: var(--neutral-0);
    --color-accent: var(--blue-600);
    --color-on-accent: var(--neutral-0);
    --color-danger: var(--red-600);
    --color-on-danger: var(--neutral-0);
  }
}

The components

Module 9 defined a component as a reusable part with its own states. The sample site has seven:

Component Rules States and variants Used on
Button .button in base.css enabled, hover, focus, pressed, disabled; danger every page; one primary per view
Link a in base.css hover, focus, current page in the header every page
Field input, select in base.css; hint and error in signup.css focus, error (:user-invalid) sign-up, settings
Card .feature, .plan, .signup-form, each in its page’s CSS recommended (.plan-recommended) landing, pricing, sign-up
Table .settings th, td and .pricing th, td, in each page’s CSS numeric columns, empty row settings, pricing
Status label .status in settings.css ok, running, failed settings
Header .site-header in base.css, menu.js current page, menu below 44rem, Esc every page

Two rows are copies, not shared rules. The card and the table are written again on each page that uses them, from the same tokens. They look alike because the tokens match, but a change to one copy doesn’t reach the others. That’s the first thing a larger system would fix, with one .card and one table class in base.css.

Pause and predict: you change --radius-large from 8px to 12px. Which cards follow, and what would you have to check by hand?

Answer

All three cards follow (the features, the plans and the sign-up form) and the open menu too, because every copy uses the token. But check by hand what the token doesn’t reach. The menu’s links keep --radius-small, 4px, but Module 9’s rule makes an inner corner the outer one minus the padding. With 12px outside and 4px of padding, the links now need 8px.

The page that documents it

The last step of the lab writes all of this down on one page, system.html, drawn by the real CSS. If a token changes, the page changes with it, so it can’t fall out of date the way a separate document can.

Why: the next person who adds a page, or you in six months, needs to know which token and which component to use before writing CSS.

Copy the final pricing.html to system.html, and make four changes in the copy:

  1. The title becomes <title>Design system - Stashling</title>.
  2. Replace <link rel="stylesheet" href="pricing.css"> with these two lines; the status labels’ rules live in settings.css:

html <link rel="stylesheet" href="settings.css"> <!-- for the status labels --> <link rel="stylesheet" href="system.css">

  1. The Pricing link loses its aria-current: <a href="pricing.html">Pricing</a>.
  2. Replace everything from <main to </main> with the following.
  <main class="content system">
    <div class="intro">
      <h1>Stashling design system</h1>
      <p>Every sample on this page is drawn by <code>tokens.css</code> and <code>base.css</code>. Change a token, reload, and the sample changes. Switch the system to dark mode to see the dark theme.</p>
    </div>

    <section>
      <h2>Color</h2>
      <p>Rules use these semantic tokens, never a scale step or a hex value.</p>
      <ul class="swatches">
        <li style="--swatch: var(--color-surface)"><span><code>--color-surface</code> page background</span></li>
        <li style="--swatch: var(--color-surface-alt)"><span><code>--color-surface-alt</code> code blocks, disabled buttons</span></li>
        <li style="--swatch: var(--color-text)"><span><code>--color-text</code> body text</span></li>
        <li style="--swatch: var(--color-muted)"><span><code>--color-muted</code> secondary text, field edges</span></li>
        <li style="--swatch: var(--color-border)"><span><code>--color-border</code> card and table lines</span></li>
        <li style="--swatch: var(--color-bar)"><span><code>--color-bar</code> header and footer, with <code>--color-on-bar</code></span></li>
        <li style="--swatch: var(--color-accent)"><span><code>--color-accent</code> buttons, links, focus, with <code>--color-on-accent</code></span></li>
        <li style="--swatch: var(--color-danger)"><span><code>--color-danger</code> errors, destructive buttons, with <code>--color-on-danger</code></span></li>
        <li style="--swatch: var(--color-status-ok)"><span><code>--color-status-ok</code>, <code>-running</code>, <code>-failed</code> status labels</span></li>
      </ul>
    </section>

    <section>
      <h2>Type</h2>
      <p>One family, Inter, and six steps of a fluid scale. Body text is <code>--step-0</code>.</p>
      <p style="font-size: var(--step-4)">Page title <code>--step-4</code></p>
      <p style="font-size: var(--step-3)">Price, h1 <code>--step-3</code></p>
      <p style="font-size: var(--step-2)">h2 <code>--step-2</code></p>
      <p style="font-size: var(--step-1)">h3, logo, plan name <code>--step-1</code></p>
      <p style="font-size: var(--step-0)">Body text and fields <code>--step-0</code></p>
      <p style="font-size: var(--step--1)">Footer, labels <code>--step--1</code></p>
    </section>

    <section>
      <h2>Space</h2>
      <p>Eight steps on a 4px base. Use <code>--space-inside</code> within a group and <code>--space-between</code> between groups.</p>
      <ul class="spaces">
        <li style="--size: var(--space-1)"><span><code>--space-1</code> 4px</span></li>
        <li style="--size: var(--space-2)"><span><code>--space-2</code> 8px</span></li>
        <li style="--size: var(--space-3)"><span><code>--space-3</code> 12px</span></li>
        <li style="--size: var(--space-4)"><span><code>--space-4</code> 16px, inside</span></li>
        <li style="--size: var(--space-5)"><span><code>--space-5</code> 24px</span></li>
        <li style="--size: var(--space-6)"><span><code>--space-6</code> 32px</span></li>
        <li style="--size: var(--space-7)"><span><code>--space-7</code> 48px, between</span></li>
        <li style="--size: var(--space-8)"><span><code>--space-8</code> 64px</span></li>
      </ul>
    </section>

    <section>
      <h2>Components</h2>
      <h3>Button</h3>
      <p>One per view is the primary action. States: hover darkens the fill 15%, pressed moves 1px down, focus draws the ring, disabled loses the fill.</p>
      <div class="samples">
        <button class="button" type="button">Save schedule</button>
        <button class="button button-danger" type="button">Delete snapshot</button>
        <button class="button" type="button" disabled>Restore selected</button>
      </div>
      <h3>Link</h3>
      <p>Underlined in text, in <code>--color-link</code>. Every other action on a view is a link.</p>
      <p><a href="pricing.html">Compare the plans</a></p>
      <h3>Field</h3>
      <p>Label above, hint under the label, error inside the label after the field is left or the form is sent.</p>
      <div class="field">
        <label for="sample">Username</label>
        <p class="hint">Use 3 to 20 lowercase letters, numbers or hyphens</p>
        <input type="text" id="sample">
      </div>
      <h3>Card</h3>
      <p>A 1px <code>--color-border</code> line, <code>--radius-large</code> corners, padding from the space scale. Cards in a row share rows with subgrid. Used by <a href="index.html#features">the features</a>, <a href="pricing.html">the plans</a> and <a href="signup.html">the sign-up form</a>.</p>
      <h3>Table</h3>
      <p>Lines in <code>--color-border</code>, text aligned to the start, numbers in a column aligned to the end with tabular figures. It scrolls inside its own box on a phone. Used on <a href="settings.html">settings</a> and <a href="pricing.html">pricing</a>.</p>
      <h3>Status label</h3>
      <p class="samples">
        <span class="status status-ok">Done</span>
        <span class="status status-running">Running</span>
        <span class="status status-failed">Failed</span>
      </p>
      <h3>Header</h3>
      <p>The bar at the top of this page: logo, nav, Sign up and Settings at the right, the current page underlined. Below 44rem the nav becomes a menu that closes on Esc.</p>
    </section>

    <section>
      <h2>Not tokens yet</h2>
      <p>These values are still written by hand: the header's 10px padding and 15px gaps, the footer's 30px margin, the 10px padding of code blocks, the sign-up form's 20px margin and padding. The table and card rules are copied on each page that uses them.</p>
    </section>
  </main>

The style attributes set one custom property each, --swatch or --size. Then system.css draws the sample from it, so each line of the list shows its own token. Create system.css:

/* The design system page: every sample is drawn by the tokens themselves */
.system {
  display: flex;
  flex-direction: column;
  gap: var(--space-between);
  padding-block: var(--space-6);
}

.system h1,
.system h2,
.system h3,
.system p {
  margin: 0;
}

.system > .intro,
.system > section {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--space-inside);
  max-inline-size: var(--measure);
}

.swatches,
.spaces {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The sample in a fixed first column, the name and its job in the second */
.swatches li,
.spaces li {
  display: grid;
  grid-template-columns: var(--space-8) 1fr;
  align-items: center;
  gap: var(--space-3);
}

/* A swatch has an edge, so the surface color shows on the surface */
.swatches li::before {
  content: "";
  inline-size: var(--target-min);
  block-size: var(--target-min);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--swatch);
}

.spaces li::before {
  content: "";
  inline-size: var(--size);
  block-size: var(--space-4);
  background: var(--color-accent);
}

/* Token names stay small next to large samples */
.system code {
  font-size: var(--step--1);
}

.samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-inside);
}

/* The field sample, as the sign-up form draws it */
.system .field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.system .hint {
  color: var(--color-muted);
}

The page isn’t linked from the nav, because visitors don’t need it. So open it from the folder; Figure 13 shows its top.

Figure 13: the top of system.html. Each swatch, size and bar is drawn by the token named beside it.

What you should see: Figure 13. Switch the system to dark mode, and every swatch changes to its dark value. The last section lists what isn’t a token yet, so the debt is written down where the next person will look.

What a larger design system adds

The sample site’s system fits on one page because one site uses it. But larger systems add parts that pay off only with more people and more products:

  • Patterns for whole tasks. The GOV.UK Design System has Styles, Components and Patterns (GOV.UK Design System). Patterns are guidance for whole tasks, such as asking for a name or an address, not only for widgets. Its code, GOV.UK Frontend, was at version 6.6.0 on 15 October 2026, under the MIT license.
  • Several themes on the same role names. IBM’s Carbon has four themes, White, Gray 10, Gray 90 and Gray 100. A token such as $text-primary keeps its name in every theme, and only the value changes (Carbon, themes). That’s Module 6’s semantic tokens, with four themes instead of two.
  • A third tier of tokens. Material Design 3 names its tokens in three tiers: reference, system and component. In Material Web’s CSS, --md-ref-typeface-* holds raw values, --md-sys-color-primary holds a role, and --md-filled-button-container-color gives one component its own token (Material Web, theming). The sample site has the first two tiers: scale steps and semantic colors.
  • Versioned packages, a contribution process and a team. NN/g names a team of at least an interaction designer, a visual designer and a developer.

Material Web’s own README says it “is in maintenance mode pending new maintainers”. A large system costs work to keep alive, and even Google’s web version waits for people to do it.

NN/g’s article gives the trade-off. A design system pays when many teams repeat the same work for years, and it doesn’t pay for a short proof of concept. In order of cost, you can adopt an existing system, adapt one, or build your own. If you have one small site, one token file and one page of documentation are the cheapest version that still keeps the pages alike.

Tokens outside CSS: the DTCG format

A design tool can’t read tokens.css. The Design Tokens Community Group format (DTCG format) is a JSON format for tokens that design tools and build tools can exchange. Its first stable version, 2025.10, was published on 28 October 2025 (DTCG, Format Module 2025.10).

Many blog posts call it a W3C standard, but the report says it’s “not a W3C Standard nor is it on the W3C Standards Track”. It’s a final report of a W3C Community Group, and the group calls it stable.

Here are four of the sample site’s tokens in that format. It’s an excerpt for comparison, and the lab doesn’t use it:

{
  "color": {
    "$type": "color",
    "blue-600": {
      "$value": { "colorSpace": "srgb", "components": [0, 0.4706, 0.8039], "hex": "#0078cd" }
    },
    "accent": { "$value": "{color.blue-600}", "$description": "Light theme only" }
  },
  "space": {
    "$type": "dimension",
    "4": { "$value": { "value": 1, "unit": "rem" } },
    "inside": { "$value": "{space.4}" }
  }
}

And the same four in tokens.css:

/* excerpt from tokens.css */
  --space-4: 1rem;    /* 16px */
  --space-inside: var(--space-4);  /* between items of one group */
  --blue-600: #0078cd;    /* L 0.56 */
  --color-accent: light-dark(var(--blue-600), var(--blue-300));

They’re one idea in two syntaxes. A token is an object with a $value, and $type can sit on the group. An alias is a token’s path in braces, as var() is in CSS. The color module also accepts oklch as a color space, so a team that designs in OKLCH can keep it. Our accent is stored as sRGB, because tokens.css stores the mapped hex (Module 6).

The dark theme is missing from the JSON. CSS puts both themes in one light-dark(), but the DTCG format moves themes to a separate Resolver module, which this excerpt doesn’t show. The sRGB numbers are the hex divided by 255, rounded to four places.

Tools such as Style Dictionary turn a DTCG file into CSS custom properties; it was at version 5.8.0 on 3 November 2026, under the Apache 2.0 license. But the cost is a build step the sample site doesn’t have, and a second file that becomes the source of truth. If you have one site and no design tool, tokens.css alone is enough.

Design tools and the browser

The course never needed a design tool (teaching rule 6), and you can finish it without one. Figma and Penpot are the two tools this section compares. It states what each does and costs, and recommends neither. Every plan and price below was read on the tools’ own pages on 2026-11-18.

What a design tool does better

  • Many options fast. You duplicate a frame and change it, and ten versions of a plan card sit side by side. In the browser, each version is a file or a class.
  • Free-form shapes. You can draw an idea before you know how to build it.
  • Working with a designer. One shared file, comments on the design itself, prototypes that click through, and component libraries shared across files.

What the browser does better

  • The real thing. Real fonts and their rendering, real text of real length, real wrapping at every width.
  • Real states and contrast. Hover, focus and the dark theme come from the same tokens the site uses.
  • No hand-off. Nothing is redrawn or translated from a picture into CSS, so nothing gets lost.

The pricing page showed both sides. The sketch could have been ten variants in a design tool in the time one HTML file took. But the table’s 31 px overflow on a phone and the 683 px header showed up only in the browser.

Pause and predict: which of the lab’s three critique changes would have been faster to try in a design tool? Which of the five findings would a design tool most likely have missed?

Answer

Changes 1 and 3, the sizes and the label, are visual tries that a tool shows side by side in minutes. Change 2 is a class name either way. Finding 4, the table on a phone, depends on real text wrapping at a real width, and so does the header’s 683 px. A frame in a design tool shows them only if someone draws that width with that text.

Figma

Figma is a proprietary design tool that runs in the browser and as a desktop app. Variables store reusable values such as colors and numbers, in collections with modes, for example a light and a dark mode. Dev Mode shows code snippets and variables for developers, and Code Connect links design components to code components.

  • Free plan (Starter). Unlimited drafts, shareable with unlimited viewers, who can still inspect. A team space of one folder with three files, each limited to three pages. Version history for 30 days. No Dev Mode.
  • Paid. The Professional plan’s Full seat is $16 a month, a Dev seat $12 and a Collab seat $3 (Figma pricing). The page didn’t make clear which billing term these prices are for.
  • Tokens. At its Schema conference on 28 October 2025, Figma announced native import and export of variables in the DTCG format (Figma blog). We haven’t checked which token types and fields it covers today, and user reports from December 2025 describe gaps.

Penpot

Penpot is an open-source design tool under the Mozilla Public License 2.0, at version 2.19.3 on 18 November 2026. It runs in the browser on Penpot’s servers, or on a server you host yourself. Its layouts use CSS Flexbox and Grid, so a layout in Penpot behaves like the CSS that builds it. It has native design tokens, and imports and exports them as DTCG JSON (Penpot help, design tokens).

  • Free plan. $0, “free forever for individuals and small teams”, with no file limits. As we read the comparison table, it allows up to 8 team members with unlimited viewers, 10 GB of storage and 7 days of version history (Penpot pricing). The table’s layout made that reading uncertain.
  • Paid. Unlimited is $7 per editor a month, capped at $175 a month. Hosting it yourself is free under the license, but you run the server.
  • Tokens. Penpot’s help page still calls the DTCG format a draft, which has been out of date since October 2025.

For sketches only

Excalidraw is an open-source whiteboard under the MIT license, with a hand-drawn look. Its hand-drawn boxes match the gray-box step. Its free version has one scene, unlimited collaborators, and export to PNG and SVG (Excalidraw+ pricing). Paper does the same job alone, and the HTML sketch in Step 3 does it with reflow.

The cost they share

Either tool adds a second source of truth, so a color changed in the design file and not in tokens.css, or the reverse, is a difference someone must find. DTCG import and export narrows that gap, but support differs between tools, and a sync step is still work.

You want to Design tool Browser
Compare ten layouts in an afternoon Faster: duplicate and edit Slower: a file or class each
Work with a designer on one file Shared file, comments, prototypes Screenshots or a deployed preview
Check wrapping, widths and states Approximate Exact
Check contrast in both themes With modes set up to match With the real tokens
Keep one source of truth Needs a sync with tokens.css tokens.css is the source

Two pages to design on your own

Each page below is described by its content and its goal, as the pricing page was. Design it with the eight steps, in the sample site’s folder, using only the existing tokens. Then compare your result with the hidden list.

Practice page 1: the download page

Goal: a visitor installs Stashling 2.4 on their own system and can check that the file is genuine.

Content:

  • Stashling 2.4, released November 12, 2026. A link to the release notes (the blog article).
  • Three files: Linux (x86-64, 9.8 MB), macOS (universal, 11.2 MB), Windows (x86-64, 10.4 MB). Each has a SHA-256 checksum, 64 hexadecimal characters.
  • The first two commands after download: stashling init --repo /mnt/backup and stashling backup ~/.
  • How to check a file: compare its SHA-256 checksum with the one on the page.
  • A link to older versions.
Hint 1

Rank the content (step 2). What does the visitor come for, and what do only some visitors need?

Hint 2

Three systems with no way to know which one the visitor uses. How many primary actions does that give you, and what does Module 1 say about three equal buttons?

Hint 3

Where do 64-character checksums go, in which font, and what happens to them at 390 pixels (Modules 3, 7 and 10)?

What a strong design includes
  • A title with the version, such as “Download Stashling 2.4”, and the release date under it in the muted color (Modules 1 and 4).
  • The three systems as three equal choices, because no one of them is the page’s goal for every visitor. Here three buttons of the same kind are fine, because they are three versions of one action and the visitor picks exactly one. Each label names the system and the file size, such as “macOS, 11.2 MB” (Modules 1 and 10). Or one primary button per card, with the cards alike (Module 9).
  • The checksums in a table with the system, the file name and the checksum, in --font-code (Module 3). The table scrolls inside its own box on a phone, so the page itself never scrolls sideways (Module 7). Sizes in one column, one unit, aligned to the end with tabular figures (Module 10).
  • The two commands in a pre block, after the download, as the next step (Modules 1 and 7).
  • The check explained in one sentence before the table, starting with the action (Module 10’s microcopy).
  • Older versions as a link at the end, so it doesn’t compete (Module 1).
  • A “Download” link in the nav that marks the page as current (Module 11), which moves Download from the landing page’s section to its own page.

Practice page 2: the service status page

Goal: a person whose backup failed learns in seconds whether hosted storage is down, or whether the problem is on their side.

Content:

  • Four services: Backup uploads, Restores, Web console, Email alerts. Each is Working, Slow or Down.
  • Right now: Restores are Slow since 09:40 UTC; the other three are Working.
  • Recent incidents: November 14, 2026, Backup uploads Down for 38 minutes. November 2, 2026, Email alerts Slow for 2 hours 5 minutes. Each with a two-sentence summary.
  • A line on what to do if every service is Working and your backup still fails: check the snapshot table under Settings.
Hint 1

What is the one answer the visitor came for? Where does it go, and at what size (Module 1)?

Hint 2

Working, Slow and Down need three colors. What must carry the meaning besides the color, and what do the color tokens already offer (Modules 5 and 6)?

Hint 3

Durations in two units, and incidents that may be none at all. What do Module 10’s tables and empty states say?

What a strong design includes
  • One summary line at the top, at the largest size: “Restores are slow. Everything else is working.” It states the worst current status in words, not a color (Modules 1 and 6).
  • The four services as a list or table with a status label each, the word inside the label (Modules 5, 6 and 9). The existing tokens fit: Working on --color-status-ok, Slow on --color-status-running, Down on --color-status-failed, all with --color-on-status text.
  • The time each problem started, with its time zone, next to the service.
  • Recent incidents in a table with the date, the service, the status and the duration. The durations in one format, such as h:mm (0:38 and 2:05), aligned to the end with tabular figures (Module 10).
  • An empty state for when there are no incidents: what that means, such as “No incidents in the last 30 days”, not an empty table (Module 10).
  • The “if everything is working” line with a link to Settings, so a visitor with a local problem has a next step (Modules 10 and 11).
  • Both themes checked: the status labels keep dark text on light fills in the dark theme too (Module 6).

A prompt for AI feedback on a screenshot

An AI tool that reads images can act as one more critic, with the same weakness as any critic without the brief. Take a screenshot at 1280 pixels and one at 390, attach both, and paste this prompt with the brackets filled in:

You are reviewing a web page design from two screenshots: one at 1280
pixels wide and one at 390 pixels wide.

The page: [what the page is, in one sentence]
Its goal: [what a visitor should be able to do or decide]
Who uses it: [the visitors, and what they already know]
Constraints: [for example: existing design tokens; light and dark themes;
plain HTML and CSS]

Review the design against each item below, in order. For each item, say
"no problem found", or describe the problem, point to where you see it,
and rate it from 0 (not a problem) to 4 (stops people from reaching the
goal). If you cannot judge an item from a screenshot, say so, and do not
guess. Examples: contrast ratios, hover and focus states, zoom.

1. Hierarchy: what is seen first, and is it the most important thing?
2. Grouping and spacing
3. Typeface choice
4. Text size, line length, line height
5. Order of importance in grayscale
6. Contrast, and meaning shown by color alone
7. Layout at both widths
8. Images and icons, and whether icons have words
9. Buttons, links and their states
10. Forms and tables
11. Conventions, navigation and the current page

Then list the three changes that would help the goal most, one change
each, most important first. Tie each one to the goal.

The prompt states the goal first, as NN/g’s rule does, and asks the tool to say when a screenshot can’t show something. So treat the answer as one reviewer’s opinion. Check every claim it makes about contrast with a contrast checker, because a model reading pixels doesn’t compute ratios. Don’t send screenshots of pages with personal data.

Choices and costs in this module

Decision Choice in the lab Cost or limit Choose something else when
Process Eight steps, one change per round Slower than building straight away A one-line fix: skip to the change and the check
Sketch Gray boxes in an HTML file Slower than paper for a first idea Many layouts to compare: paper or a design tool
Recommended plan A word, a 2px accent edge, the only filled button The label is out of the flow, so a long one wraps onto the plan’s name A long or translated label: put it in its own subgrid row
Table numbers Aligned to the start Breaks Module 10’s rule on the surface Plans as rows: then align the numbers to the end
Components Recipes copied per page from the same tokens A fix to one copy misses the others More pages use a card: one .card class in base.css
Documentation One page drawn by the real CSS Shows states only as words, not live hover or focus A team: a component page per part, with usage and states
Tokens tokens.css only Design tools cannot read it A designer in a design tool: DTCG JSON and a build step

What changed recently

  • The DTCG format reached its first stable version, 2025.10, on 28 October 2025, with modules for the format, colors and a resolver for themes. The W3C Community Group’s announcement names Style Dictionary, Tokens Studio and Terrazzo as reference implementations (W3C community blog, 2025).
  • Figma announced native DTCG import and export the same day.
  • Material Web’s README says the project is in maintenance mode pending new maintainers.

The lab adds no CSS feature that an earlier module didn’t use, except position: absolute and transform: translateY(), both Baseline widely available for years (since 2018-01-29 and 2018-03-30). Subgrid, used again for the plans, has been widely available since 2026-03-15. All statuses are from the web-features data, version 3.46.0, read on 2026-11-18.

Sources

Design process:

Critique:

Design systems:

Design tools, all read on 2026-11-18:

Browsers:

  • The web-features data, version 3.46.0, for every Baseline status in this module.

The header widths, the table’s widths and the type sizes come from headless Chrome 157 on macOS, at a 16 px default font size. The scripts are measure.mjs and table.mjs in color-calc/m12/, and minwidth.mjs in color-calc/m11/. Your numbers will differ with other browsers and settings.

Course cheat sheet

The critique checklist, one line per module:

 1 Hierarchy    squint or blur: the most important thing is seen first;
                one primary action per view
 2 Spacing      gaps inside a group < gaps between groups; scale steps only
 3 Type         one family; covers your languages; code in the code stack
 4 Text         sizes from the scale; ~65 characters a line; 1.5 and 1.2;
                works at 200% zoom
 5 Value        the order still reads in grayscale
 6 Contrast     4.5:1 text, 3:1 large text and UI, both themes;
                never meaning in color alone
 7 Layout       320, 390 and 1280 px; no sideways page scroll;
                breakpoints where the content breaks
 8 Images       each image has a job and alt text for it; one icon set,
                icons with words
 9 Components   links look like links; hover, focus, pressed, disabled;
                targets 24 px or more, 44 px for touch
10 Forms        labels above, hints first, errors in words;
                numbers aligned where people compare them; empty states
11 Usability    conventions on purpose; current page marked;
                heuristics 4, 6, 1; five people per round

The process: references, content and hierarchy, sketch, tokens, build, critique, one change, repeat. State the goal before any critique.

The token file in short:

Space    4 8 12 16 24 32 48 64 px; inside 16, between 48
Type     Inter; 6 fluid steps from 1.2 to 1.25; title = step 4
Text     measure 50ch; leading 1.5 text, 1.2 headings; tracking -0.02em
Layout   page 72rem max; margin max(16px, centered)
Color    surface, surface-alt, text, muted, border, bar, accent, danger,
         focus, link, field-border, with on- pairs; light-dark()
Status   oklch(0.75 0.14 145 / 85 / 30) with dark text
Parts    icon 24px; targets 44 and 24px; radius 4 and 8px; one shadow
Motion   100 and 200ms; ease-out; reduced motion keeps the fade

This is the end of the course. Next, pick a page of your own that has never had a design pass. Write its goal and its content as a ranked list, sketch it in gray boxes, build it from a token file, and run the checklist twice.