Skip to Content

Components & visual scale

Audit every UI component and visual state at 1:1 size, review duplicates and wrappers, check spacing, corner, type, and color outliers, and spotlight usage on the map.

3 tasks, 2 questions answered.

PitaFix reads every captured screenshot once and groups UI pieces by kind (buttons, rows, fields, checkboxes, tabs, chips, text, pictures, cards, bars, and sheets) at true 1:1 point scale.

Components beside the map
Components beside the mapExtracted buttons, cards, rows, pictures, and bars from Hearth's captured screens, tiled side by side with the map.Components beside the map
Visual scale
Visual scaleMeasured gaps, corner radii, and fill swatches observed across the app's captured screens.Visual scale

Inspect components and their visual states

See every rendered state of a component beside the exact code that calls and draws it.

  1. Click Components in the top toolbar, or choose View › Panes › Components.
  2. Select any state to open the detail column: call sites that jump into your editor, wrappers, triggered Actions, size, colors, and the exact lines that draw that state.
  3. Right-click a state (or use the column header) and choose Spotlight on Map to dim other screens and highlight every screen using that component.
  4. Filter by component name at the bottom of the pane.

Wrong turn? Wrong component kind? Right-click a state and choose Change Kind, or Auto to return to automatic classification.

Review duplicates, wrappers, and inline controls

Spot visual and structural drift with side-by-side crops, then decide what to fix or keep intentional.

  1. Click Review (the eye icon in the Components header) to list alike components, duplicate text styles, thin wrappers, inline controls with no component, and single-use external components.
  2. Select a suggestion to isolate those components and compare their cropped states at actual size.
  3. Click New Epic to pin comments on each component and group them into an epic (tracked as In Tasks and Settled).
  4. Or click Mark Intentional…, enter why the variation belongs, and press ↩.

Wrong turn? Changed your mind about an exception? Open Intentional and click Unmark.

Check your visual scale and outliers

Measure the gaps, corner radii, text line heights, fills, and Text colors your captured screens actually use.

  1. Click Scale (the ruler icon in the Components header).
  2. Read each scale value, its usage share across the app, and editor links to locations that depart from it.
  3. Click the outlier button (for example, Show 3 Outliers) to isolate off-scale states, select any state to inspect its departure, and click Show All to return.

Wrong turn? Click the selected state again (or press the header's ×) to clear isolation.

How it works

How are component states distinguished?

From screenshot pixels, never from text copy alone.

  • Each state records size, fill, text color, outline, corner radius, and the source lines that drew that specific state.
  • Text states group by line height and ink color, so labels with different copy share one text state.
  • Selecting an element on the map shows a Used row in the inspector with Show in Components; VS Code and Zed show component counts in hover and CodeLens.
  • If a capture was drawn by another platform's renderer, PitaFix notes that visual measurements are approximate.

Do Components sync in shared sessions and work with agents?

Yes—component readings cache in the project store and travel with shared snapshots.

  • Sharing a project analyzes screenshots first so collaborators open the populated Components pane and see live cursors on it.
  • Coding agents query the same inventory and visual scale via MCP or CLI (see Inspect behavior & components).

On this page