Skip to main content

UI Verification

Folder: .github/skills/tsh-ui-verifying/
Used by: UI Reviewer, Software Engineer

Provides detailed criteria for comparing UI implementations against Figma designs, with severity definitions, tolerance rules, and structured report formats.

Verification Categories

CategoryWhat to Check
StructureContainer hierarchy, element nesting, grouping
LayoutFlex direction, alignment, positioning
DimensionsWidth, height, padding, margin, gap
VisualTypography, colors, border radius, shadows, backgrounds
ComponentsCorrect variants, design tokens, interaction states

Severity Definitions

SeverityDefinitionExamples
CriticalStructural or layout mismatchesWrong container hierarchy, missing sections, wrong flex direction
MajorDimension differences >2px, wrong colors/fontsPadding 24px vs 16px, wrong font weight
Minor1-2px browser rendering variance15px vs 16px due to subpixel rendering

Tolerance Rules

PropertyTolerance
Structure / hierarchyNone — must match exactly
Layout direction / alignmentNone — must match exactly
ColorsNone — must match exactly
Typography (font, weight)None — must match exactly
Dimensions / spacing1-2px — browser rendering variance only

Pre-Verification Checklist

  • Figma URL is available for the component.
  • Development server is running.
  • Target page is loaded and accessible.
  • Viewport size matches the design's frame.

Structure Verification Checklist

  • Scrolled through the entire page.
  • All sections/components are present.
  • Container hierarchy matches Figma layer tree.
  • Element order matches design.

Common Mistakes

MistakeExplanation
Skipping structure checkStructure issues affect everything downstream
Only checking colorsDimensions and layout are more impactful
Ignoring hover/focus statesInteractive states are part of the design
Not scrolling full pageBottom sections often get missed
Assuming responsiveCheck the specific viewport from design
Accepting "close enough"Report exact values, let SE decide

Report Format

Reports use the following structure:

  • Result: PASS or FAIL
  • Confidence: HIGH / MEDIUM / LOW
  • Structural Issues — Table of layout/hierarchy mismatches (CRITICAL)
  • Dimension/Visual Differences — Table with expected, actual, severity
  • Recommended Fixes — Specific actions with exact values
Never Guess — Always Ask

If you cannot determine whether a difference is intentional or a bug, report it and ask. Do not make assumptions about design intent.