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;
}
<span>Текст</span>
html, body {height:100%;}
span {
display: inline-flex;
align-items: center;
height: 70%;
background: lightgray;
}