JSFiddle - React, Tailwind, and code Playground

HTML

<div class="box_2 green">
    	<div class="box_1 red">Hello World</div>
	</div>

CSS

.red 	{ background-color: #f00; }
.green 	{ background-color: #0f0; }
.box_1, .box_2 {
	display: inline-block;
}
.box_1 {
	width:  300px;
	height: 300px;
	transform: scale(0.5);
	transform-origin: left top;
}