Skip to content
Clairos Learn

Visual polish · Lesson 1 of 8 · 7 minutes

Visual polish: Button hierarchy

A primary action deserves stronger visual emphasis than secondary controls without making either unreadable.

Mastery 0/3Run itExplain itApply it
Web workshopInert preview · code inspection

Current edit

PreviewNo external resources

Understand the pattern

A primary action deserves stronger visual emphasis than secondary controls without making either unreadable.

A primary action deserves stronger visual emphasis than secondary controls without making either unreadable.

Misconceptions to reject

  • If the page fits one desktop viewport, no narrower viewport needs checking.
  • Hiding all overflow always makes content accessible.

The preview is a sanitized subset, not a full browser compatibility test.

Worked example and expected result
button { padding: 0.75rem 1rem; }
.primary { background-color: #164e45; color: #ffffff; }
.secondary { background-color: #ffffff; color: #164e45; border: 1px solid #164e45; }

A primary action deserves stronger visual emphasis than secondary controls without making either unreadable.

Try a variation

Adapt the final example to a different project name while retaining its structure and relationships. A different context still needs a real browser and accessibility check.

Explain it

Which statement correctly explains button hierarchy?

Apply it elsewhere

You reuse button hierarchy in a different project. What must still be verified?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Visual polish: Focus ringsTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Visual polish: Focus ringsA separated, visible outline makes the keyboard target identifiable without shifting layout.Practice
  2. 02Visual polish: Card rhythmConsistent internal spacing makes repeated content easier to compare than arbitrary per-card offsets.Practice
  3. 03Visual polish: Readable contrastForeground and background work as a pair. Color choice still needs contrast measurement in the real product.Practice