Dimension UI components with AI
Turn a rendered component or its documented measurements into a monochrome drawing with labelled views, dimension lines and a table of variables.
Dimension UI components with AI when a screenshot leaves a developer guessing which spaces can grow. Give dimensional-drawing a real card, dialogue or button and a source for its measurements. It draws the structural slots and labels dimensions with codes that refer back to a table on the sheet.
A design-system team can use the result to discuss a specific question. Does the bottom row keep the same padding when the card narrows? Which radius follows from the outer corner and border? Unknown measurements remain clearly marked for the next discussion.
What it does
- Put the overall component and an enlarged corner detail on the same sheet.
- Trace a dimension line back to its source variable.
- Illustrate how the title, action and content areas divide the available space.
- Separate a measured value from an assumption the design has yet to settle.
- Prepare an HTML drawing that colleagues can inspect in a browser.
Install and use
- Install the skill in your agent. For a rendered component, make its source and a browser with Playwright available.
- Give the component name and describe the state or layout you want documented.
- Ask, “Draw this card at its narrowest supported width. Show how the inner corner radius is derived and mark anything the styles leave open.”
- Inspect the finished sheet for intersecting labels and measurements pointing to the wrong edge.
FAQ
Source
Made by Enes Ozturk. Original skill: dimensional-drawing, published on GitHub under the MIT licence.
View on GitHub