This is extra small text using
text-xs
. Useful for tiny disclaimers or captions.
This is small text using
text-sm
. Good for secondary information.
This is base text using
text-base
.
This is large text using
text-lg
. Suitable for subheadings.
This is extra large text using
text-xl
. Often used for main headings.
The
text-base
utility is a crucial part of Tailwind's typography scale.
It sets the font size to the default font size configured in the user's browser, which is most commonly 16 pixels.
This makes
text-base
a reliable foundation for your body copy, ensuring readability and respecting user preferences.
While it's the "base", it doesn't mean it's visually "medium" among all available Tailwind sizes (
text-xs
,
text-sm
,
text-lg
,
text-xl
, etc.).