Font-sans: Tailwind CSS Font Family

The font-sans class applies a sans-serif font, commonly used for a modern and clean look.


Font-sans

The font-sans class applies a sans-serif font, commonly used for a modern and clean look.

Example Code

html
<div
class="p-5 font-bold bg-gray-100 rounded-t-md flex flex-col justify-center items-center"
>
<h3 class="text-gray-500 mr-48">Font-sans</h3>
<p class="font-sans ml-4">How vexingly quick daft zebras jump.</p>
</div>

Preview

Font-sans

How vexingly quick daft zebras jump.

How to Use

Add the Font-sans class directly to your HTML element:

html
<div class="Font-sans">
<!-- Your content here -->
</div>

Responsive Usage

Use Tailwind's responsive prefixes to apply Font-sans at specific breakpoints:

html
<div class="sm:Font-sans md:Font-sans lg:Font-sans">
Responsive element
</div>
  • sm:Font-sans — applies from 640px and up
  • md:Font-sans — applies from 768px and up
  • lg:Font-sans — 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