Skip to content
epitometool

Tailwind cheatsheet

SEO & Dev publishing

Search common Tailwind utility classes and view concise CSS behavior mappings.

Updated

Search classes

Find utility classes by name, effect or group.

Matches (20)

ClassDescriptionCSSGroup
p-4Padding all sidespadding: 1rem;Spacing
px-6Horizontal paddingpadding-left/right: 1.5rem;Spacing
mx-autoCenter block horizontallymargin-left/right: auto;Spacing
gridDisplay griddisplay: grid;Layout
grid-cols-3Three equal columnsgrid-template-columns: repeat(3,minmax(0,1fr));Layout
flexDisplay flexdisplay: flex;Layout
items-centerCross-axis centeralign-items: center;Layout
justify-betweenDistribute itemsjustify-content: space-between;Layout
text-smSmall textfont-size: .875rem; line-height:1.25rem;Typography
text-2xlLarge heading textfont-size: 1.5rem; line-height:2rem;Typography
font-semiboldSemi-bold weightfont-weight: 600;Typography
tracking-wideIncrease letter spacingletter-spacing: .025em;Typography
rounded-lgRounded cornersborder-radius: .5rem;Borders
border1px borderborder-width: 1px;Borders
shadow-mdMedium shadowbox-shadow: 0 4px 6px -1px rgba(0,0,0,.1)...Effects
bg-whiteWhite backgroundbackground-color: #fff;Background
bg-gray-900Dark backgroundbackground-color: #111827;Background
text-gray-700Body text colorcolor: #374151;Color
hover:bg-gray-50Hover backgroundon hover: background-color #f9fafb;State
focus:ring-2Focus ring widthoutline ring width 2px;State

Quick start

How to use Tailwind cheatsheet

Search utility classes by intent and see CSS mappings instantly.

  1. Step 1
    Search utility

    Type class names or effects like spacing, flex or typography.

  2. Step 2
    Compare mappings

    Review class meaning and equivalent CSS.

  3. Step 3
    Use in code

    Apply matching classes in your components.

In-depth guide

Tailwind cheatsheet

Quickly search and understand common Tailwind utility classes with plain-English descriptions and CSS equivalents.

Class to CSS mapping

Seeing equivalent CSS helps onboard new team members and debug final computed styles.

How to use it

  1. Search by what you want to do — “padding”, “flex”, “rounded” — rather than memorising class names.
  2. Read the plain-English description and the equivalent CSS to confirm the utility does what you expect.
  3. Copy the class straight into your markup.

Most utilities follow a predictable scale (p-4 = 1rem), and responsive prefixes like md: apply a class from a breakpoint up.

Pitfalls and privacy

Tailwind's JIT only generates classes it can see as complete strings — dynamically concatenated names like `text-${color}` get purged in production, so safelist them or use full class names. Utility values can drift between major versions, so confirm against your installed release. This cheatsheet is a static reference rendered locally in your browser; nothing you search is uploaded.

When to use it vs alternatives

Use this tool for quick browser-based work when you need an answer or output immediately. Use a dedicated application or automated workflow when you need bulk processing, approvals, or repeatable production rules.

Frequently asked questions

Which Tailwind version is this aligned with?

Entries are aligned with modern utility patterns used in Tailwind v3/v4 class naming.

Can I copy classes directly?

Yes. Class names are shown exactly as they should be used in markup.

Does this replace official docs?

No. This is a fast lookup and memory aid for commonly used utilities.

Why do dynamic class names disappear in production?

Tailwind's JIT only generates classes it sees as complete strings. Concatenated names like text-${color} get purged. Use full class names or safelist them.

How do responsive prefixes work?

A prefix like md: applies the utility from that breakpoint upward. Tailwind is mobile-first, so unprefixed classes apply at all sizes.

What does the spacing scale mean?

Most spacing utilities map to a rem scale where each step is 0.25rem, so p-4 equals 1rem of padding.

Keep exploring

More tools you'll like

Hand-picked utilities that pair well with the one you're on — all free, client-side, and zero-signup.