text-4xl: Tailwind CSS Font Size class

The text-4xl class applies a font size of 4xl, making the text significantly larger.


text-4xl

The text-4xl class applies a font size of 4xl, making the text significantly larger.

Example Code

html
<div class="p-5 font-bold bg-gray-100 rounded-t-md">
<h3 class="text-gray-500">text-4xl</h3>
<div class="flex flex-col justify-start items-center">
<p class="non-italic text-gray-700 text-4xl">
Jinxed wizards pluck ivy from the big quilt.
</p>
</div>
</div>

Preview

text-4xl

Jinxed wizards pluck ivy from the big quilt.

How to Use

Add the text-4xl class directly to your HTML element:

html
<div class="text-4xl">
<!-- Your content here -->
</div>

Responsive Usage

Use Tailwind's responsive prefixes to apply text-4xl at specific breakpoints:

html
<div class="sm:text-4xl md:text-4xl lg:text-4xl">
Responsive element
</div>
  • sm:text-4xl — applies from 640px and up
  • md:text-4xl — applies from 768px and up
  • lg:text-4xl — applies from 1024px and up

Customization

You can extend or override this utility in your tailwind.config.js. See the Tailwind CSS documentation for details on customizing your theme.

Windframe is an AI visual editor for rapidly building stunning web UIs & websites

Start building stunning web UIs & websites!

Build from scratch or select prebuilt tailwind templates