 <pre><code> function addBox() { var rect = new fabric.Rect({ width: 1000, height: 600, top: 300, left: 500, fill: ' ', draggable: false }); rect.lockMovementX = true; rect.lockMovementY = true; rect.lockUniScaling = true; rect.lockRotation = true; canvas.add(rect); } make your fill null and if you want to have a border use strokeWidth: 3, stroke: "color" </code></pre>