ShtukbaseStandard
package file→ .shtukbase/packages/design-scales/judges/measure.md

judges/measure.md

18 lines, 1.2 KB.

  1. # Judge: text line length
  2. Norm SCL-R04. How many characters fit in a line depends on the font, the window width and how blocks are nested. This is visible only on the assembled page.
  3. **Who judges.** The screen's reviewer: a person or an agent with a browser, not the author of the screen.
  4. **When.** On a new screen with paragraphs of text: an article, help, an email, a description, a report.
  5. **What to look at.**
  6. 1. The sensor first: `shtuk run design-scales measure`. It prints widths in `ch` outside 45–75; start with those.
  7. 2. A window at the full width of a large screen (1440 px and wider). In a body-text paragraph, count the characters in one full line (with spaces). It should be 45–75; 65 is good.
  8. 3. A narrow window (360 px): a body-text line shorter than 45 characters is tolerable, but not under 30.
  9. 4. Tables, captions, buttons and labels are not counted: they are not paragraphs.
  10. **How to fix.** Give the text block `max-width: 65ch` (Tailwind `max-w-prose`). If the width is needed for layout, limit the inner text block, not the whole column.
  11. **Result.** A finding is a task with the screen and the number of characters. All in place: a note in the change description: "SCL-R04 — checked".