Draw boxes on a grid, nest them, and get the corresponding JSON structure. Built this mainly for generating JSON to feed a chatbot to get a starting layout for prototyping.
Design layouts visually with an intuitive grid system
Click and drag to resize boxes, nest them for complex layouts
- Click & drag to create boxes
- Nest elements
- Real-time JSON output
- Local saves
- CSS editor
- Undo/redo
div { background: lightblue; } # Standard block
span { background: tomato; } # Inline element
flex { background: lightgreen; } # Flexbox container
block { background: moccasin; } # Block element- Click and drag to create boxes
- Use select mode to move/resize
- CSS mode to customize styles
- Local saves to keep your work
{
"elements": [{
"type": "div",
"name": "ab-div",
"styles": {
"position": "absolute",
"left": "100px",
"top": "50px",
"width": "200px",
"height": "100px"
}
}]
}Built with vanilla JS. Feel free to use/modify!