Skip to main content
100%

Testing Sketch Import Tool

✓ Published0🌍 Public
Aalexfinnarn
Last edited Jun 12, 2020
Created on Jun 12, 2020

This example tests a Sketch import tool by rendering a Storybook page hierarchy as nested SVG groups. The code reads an `asketch.json` file containing grouped layers and rectangles, then reconstructs the layout using Sketch’s object model. It applies fills and borders from the JSON’s style properties, preserving the original visual structure. The SVG output mirrors the document’s nested `div` and `shapeGroup` layers, demonstrating how the tool converts Sketch’s internal representation into a web-renderable format.

AI-generated description

Similar vizzes