Open this example in the interactive library
Source code
<style>
.demo {
display: grid;
place-items: center;
width: 3rem;
height: 3rem;
}
.demo span {
transform: rotate(45deg);
width: 1rem;
height: 1rem;
background: #92400e;
}
</style>
<div class="demo"><span></span></div>