JSFiddle - React, Tailwind, and code Playground

by Vadim

HTML

<div class="block">lorem ipsum</div>

CSS

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block  {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: tomato;
  width: 100px;
  height: 100px;
  padding: 20px;
  color: white;
  font-weight: 900;
  font-family: sans-serif;
  text-transform: uppercase;
  position: relative;
}

.block::after {
  content: '';
  display: block;
  width: 50px;
  height: 50px;
  background-color: royalblue;
  opacity: 0.7;
  position: absolute;
  right: 0;
  bottom: 0;
}