Changing Font Size
Use the text-[size]
classes to set the font size. Replace [size]
with a size identifier like xs
, sm
, md
, lg
, xl
, or numerical values.
<p class="text-lg">This text has a large font size.</p>
How to change the Font Size and Color of Text in Tailwind CSS ?
To change the font size and colour of text in Tailwind CSS, we can use the following Utility Classes.