JSFiddle - React, Tailwind, and code Playground

HTML

<canvas width="200" height="200" id="canvas1">

JavaScript

var ctx = document.getElementById('canvas1').getContext('2d');
ctx.strokeStyle = 'black';
ctx.lineWidth = .5;
ctx.strokeRect(5.5, 5.5, 10, 20);

ctx.lineWidth = .75;
ctx.strokeRect(20.5, 5.5, 10, 20);

ctx.lineWidth = 1;
ctx.strokeRect(35.5, 5.5, 10, 20);

ctx.lineWidth = 1.5;
ctx.strokeRect(50.5, 5.5, 10, 20);

ctx.lineWidth = 2;
ctx.strokeRect(64.5, 5.5, 10, 20);