JSFiddle - React, Tailwind, and code Playground
HTML
<div class="demo">Резиновый текст</div>
CSS
.demo {
font-size: 3vw; /* 3% of viewport width */
}
<div class="demo">Резиновый текст</div>
.demo {
font-size: 3vw; /* 3% of viewport width */
}