JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="https://raw.githubusercontent.com/treinaweb/treinaweb-front-playground/standalone/tw-playground.min.css">
<div id="root" ></div>

CSS

.container{
  height: 150px;
  counter-reset: el-counter;
}
.item{
  position: relative;
  counter-increment: el-counter;
}

.item::after{
  position: absolute;
  font-size: 18px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

JavaScript

window.twPlaygroundData = {
    html: {
        initial: `
<div class="container" >
    <div class="item" ></div>
    <div class="item" >Teste fit-content</div>
    <div class="item" ></div>
</div>
        `,
        controllers: [

        ]
    },
    css: {
        initial: `
.container{
border: 2px solid black;
background-color: #0265ad;
padding: 5px;
}
.item{
border: 2px solid black;
background-color: #a2cff0;
}
        `,
        controllers: [
            {
                selector: '.container',
                avoidHighlight: true,
                props: [
                    {
                        name: 'display',
                        value: 'grid',
                        type: 'string'
                    },
                    {
                    		name: 'grid-template-columns',
                        value: '1fr fit-content(50%) 1fr',
                        type: 'string'
                    },
                    {
                    		name: 'width',
                        value: '100',
                        valueSuffix: '%',
                        type: 'range',
                        properties: [
                        	{
                          	name: 'max',
                            value: '100'
                          },
                          {
                          	name: 'min',
                            value: '10'
                          }
                        ]
                    }
                ]
            }
        ]
    },
};



let u="https://raw.githubusercontent.com/treinaweb/treinaweb-front-playground/standalone/tw-playground.min.",a=(t,e)=>{fetch(u+e).then(t=>t.text()).then(e=>{let n=document,a=n.createElement(t);a.innerHTML=e,n.body.append(a)})};a("script","js"),a("style","css");