pritamux/gridlines

gridlines includes a probe.js script that runs within the page to measure the actual ink edges of text, icons, and controls, draw reference lines, and list all misaligned elements. audit.mjs loads the page using headless Chromium and saves screenshots with reference lines at 2x scale along with a JSON report. Agents follow SKILL.md by drawing lines first and then moving elements, ensuring that sidebars, toolbars, panels, menus, and tables share a few common edges. The rules are derived from Karri Saarinen’s notes on rhythm, edges, and centering when redesigning the Linear sidebar, as well as the layout chapter of Apple’s Human Interface Guidelines.

gridlines includes a probe.js script that runs within the page to measure the actual ink edges of text, icons, and controls, draw reference lines, and list all misaligned elements. audit.mjs loads the page using headless Chromium and saves screenshots with reference lines at 2x scale along with a JSON report. Agents follow SKILL.md by drawing lines first and then moving elements, ensuring that sidebars, toolbars, panels, menus, and tables share a few common edges. The rules are derived from Karri Saarinen’s notes on rhythm, edges, and centering when redesigning the Linear sidebar, as well as the layout chapter of Apple’s Human Interface Guidelines.

Why It Matters Turns "looks slightly off" into measurable data: measures the actual edges of text and icons, lists pixel deviations item by item for correction.

Stars 262 (+6 / 24h)

Rationale

  • 6 new stars in 24 hours, total stars 262 (indicating attention only); MIT license, created on 21 11
  • Includes a sidebar example with four embedded deviations, allowing you to see what the report looks like before applying it to your own project

Usage

  • Run npx skills add pritamux/gridlines, then say "/gridlines line up the settings sidebar"; alternatively, without running scripts, paste probe.js into the browser console and call window.__gridlines()

Risks

  • The audit script requires separate installation of Playwright and Chromium
  • Handles only edge alignment and centering; ignores other design issues such as color schemes and font sizes

Open

GitHub

Explore the latest AI Radar updates