Skip to content

cwasdf/boxer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boxer

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.

2D-wireframe-generator--Boxer_main_interface Design layouts visually with an intuitive grid system

Features

Box Creation & Nesting

2D-wireframe-generator--Boxer_nesting 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

Box Types

div   { background: lightblue; }  # Standard block
span  { background: tomato; }     # Inline element
flex  { background: lightgreen; } # Flexbox container
block { background: moccasin; }   # Block element

Usage

  1. Click and drag to create boxes
  2. Use select mode to move/resize
  3. CSS mode to customize styles
  4. Local saves to keep your work

Example Output

{
 "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!

About

Simple UX/UI layout designer that runs in the browser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published