JSFiddle - React, Tailwind, and code Playground

HTML

<span>Текст</span>

CSS

html, body {height:100%;}
span {
  display: inline-flex;
  align-items: center;
  height: 70%;
  background: lightgray;
}