📐
🌀

Tailwind CSS Unit Reference

Understand how Tailwind CSS sizing classes map to pixel and rem values for precise implementation.

ලොගිනය අවශ්‍ය නැත
1rem

Context (affects rem/em/vw/vh/%)

All conversions for 16 px
Root EM (rem)1 rem
EM (em)1 em
Points (pt)12 pt
Viewport Width (vw)1.11111 vw
Viewport Height (vh)1.77778 vh
Percent (%)100 %

Common pixel sizes → rem (at 16px base)

Tailwind CSS tips

🌀

Tailwind's default base is 16px. Its 4-point spacing system means 1 unit = 0.25rem = 4px. Set the base to 16 and enter 4 to see text-xs: 0.75rem = 12px.

💡

Tailwind text sizes: text-xs (12px/0.75rem), text-sm (14px/0.875rem), text-base (16px/1rem), text-lg (18px/1.125rem), text-xl (20px/1.25rem).

📐

Tailwind spacing: p-4 = 1rem = 16px, p-6 = 1.5rem = 24px, p-8 = 2rem = 32px. Use this tool to verify any class's pixel equivalent quickly.

🎨

When extending Tailwind with custom sizes in tailwind.config.js, define them in rem for consistency: fontSize: { "2xs": "0.625rem" } = 10px at 16px base.

එය ක්‍රියා කරන්නේ කෙසේද

1
ඇතුළු කරන්න
Enter your data into the tool above. Everything stays local to your browser.
2
සකස් කරන්න
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
බාගත කරන්න
Get your result instantly. Nothing is stored after you leave the page — complete privacy.

අපගේ දේ ඇයි භාවිතා කරන්නේ?

සම්පූර්ණයෙන්ම නොමිලේ — කිසිදා සැඟවුණු පිරිවැයක් නැත
ගිණුමක්, විද්‍යුත් තැපෑලක්, හෝ ලොගිනයක් අවශ්‍ය නැත
ගොනු කිසිදා ඔබේ උපාංගය හරහා නොයන්නේය
කිසිදු ගොනු ප්‍රමාණ සීමාවක් නැත
ඕනෑම ප්‍රතිදානයක ජල සලකුණු නැත

Also check out…

නිතර අසන ප්‍රශ්න