🌊 Modern CSS ও Tailwind CSS
Utility-first CSS framework — HTML-এ সরাসরি class দিয়ে দ্রুত সুন্দর UI তৈরি করো।
🔷 Tailwind CSS কী?
Tailwind CSS হলো একটি utility-first CSS framework। Bootstrap-এর মতো ready-made component না দিয়ে এটি ছোট ছোট utility class দেয় যেগুলো HTML-এ সরাসরি ব্যবহার করে যেকোনো design তৈরি করা যায়।
Traditional CSS বনাম Tailwind CSS
Custom CSS লেখার দরকার কমে যায় → Class নাম ভাবতে হয় না → Design system automatically consistent থাকে → Build-এ unused CSS automatically বাদ যায় (tiny file size)
🔷 Tailwind CSS vs Bootstrap vs Traditional CSS
| বিষয় | Traditional CSS | Bootstrap | Tailwind CSS |
|---|---|---|---|
| Approach | নিজে সব লেখো | Ready component | Utility classes |
| Customization | সম্পূর্ণ স্বাধীন | কঠিন override | সহজ, CSS variable |
| File size | যা লিখবে তাই | বড় (unused CSS) | ছোট (purge করে) |
| Design system | নিজে বানাতে হয় | Bootstrap look | নিজস্ব theme |
| Learning curve | মধ্যম | সহজ | মধ্যম |
| Popularity (2025) | সবসময় চলে | কমছে | ⭐ সবচেয়ে জনপ্রিয় |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
⚙️ Installation — Tailwind CSS Setup করো
Tailwind CSS v4 ইনস্টল করার বিভিন্ন উপায়।
🔷 Vite দিয়ে Install (সবচেয়ে জনপ্রিয়)
🔷 PostCSS দিয়ে Install
🔷 CDN দিয়ে (শুধু Practice-এর জন্য)
🔷 Tailwind Play — Browser-এ Practice করো
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🧩 Utility-First Concept
Tailwind-এর মূল দর্শন বোঝো — কেন utility class এত কার্যকর।
🔷 একটি Card তৈরি — উদাহরণ
max-w-sm → max-width: small | mx-auto → margin: auto left/right |
rounded-xl → border-radius: extra-large | shadow-lg → box-shadow: large |
p-6 → padding: 1.5rem | text-xl → font-size: 1.25rem | font-bold
→ font-weight: 700
🔷 Naming Convention — Class নামের নিয়ম
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🔤 Typography
Text formatting-এর সব utility class।
🔷 Font Size
🔷 Font Weight, Style ও Decoration
🔷 Text Alignment ও Line Height
🔷 text-decoration বিস্তারিত ও font-feature-settings
| Class | CSS |
|---|---|
decoration-solid |
text-decoration-style: solid |
decoration-double |
text-decoration-style: double |
decoration-dotted |
text-decoration-style: dotted |
decoration-dashed |
text-decoration-style: dashed |
decoration-wavy |
text-decoration-style: wavy |
underline-offset-1 |
text-underline-offset: 1px |
underline-offset-2 |
text-underline-offset: 2px |
underline-offset-4 |
text-underline-offset: 4px |
ordinal |
font-variant-numeric: ordinal |
slashed-zero |
font-variant-numeric: slashed-zero |
lining-nums |
font-variant-numeric: lining-nums |
diagonal-fractions |
font-variant-numeric: diagonal-fractions |
font-feature-settings-['smcp'] |
Small Caps |
font-feature-settings-['tnum'] |
Tabular numbers |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🎨 Colors — রঙের জগত
Tailwind-এর built-in color palette ও ব্যবহার পদ্ধতি।
🔷 Color System — Shade (50–950)
🔷 Opacity দিয়ে Color
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
📐 Spacing — Padding ও Margin
Tailwind-এর spacing scale বুঝলে সব sizing সহজ হয়ে যায়।
🔷 Spacing Scale — 1 unit = 0.25rem = 4px
| Class | Value | px |
|---|---|---|
p-0 / m-0 |
0 | 0px |
p-1 / m-1 |
0.25rem | 4px |
p-2 / m-2 |
0.5rem | 8px |
p-3 / m-3 |
0.75rem | 12px |
p-4 / m-4 |
1rem | 16px |
p-5 / m-5 |
1.25rem | 20px |
p-6 / m-6 |
1.5rem | 24px |
p-8 / m-8 |
2rem | 32px |
p-10 / m-10 |
2.5rem | 40px |
p-12 / m-12 |
3rem | 48px |
p-16 / m-16 |
4rem | 64px |
p-24 / m-24 |
6rem | 96px |
🔷 Directional Padding ও Margin
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
📏 Sizing — Width ও Height
Element-এর আকার নির্ধারণ করার সব utility।
🔷 Width
🔷 Height
🔷 max-height ও Logical Sizing (inline-size, block-size)
| Class | CSS |
|---|---|
max-h-screen |
max-height: 100vh |
max-h-96 |
max-height: 24rem |
max-h-full |
max-height: 100% |
max-h-[500px] |
max-height: 500px (arbitrary) |
min-inline-size-0 |
min-inline-size: 0 |
max-inline-size-full |
max-inline-size: 100% |
max-inline-size-screen |
max-inline-size: 100vw |
min-block-size-0 |
min-block-size: 0 |
max-block-size-screen |
max-block-size: 100vh |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🗃️ Layout ও Display
Element কীভাবে page-এ বসবে তা নিয়ন্ত্রণ করো।
🔷 Display
🔷 Container ও Overflow
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
↔️ Flexbox
Tailwind দিয়ে Flexbox layout তৈরি করো সহজে।
🔷 Flex Container
🔷 Flex Items
🔷 justify-items, justify-self, align-content ও place utilities
| Class | CSS | কাজ |
|---|---|---|
justify-items-start |
justify-items: start | Grid items inline start |
justify-items-center |
justify-items: center | Grid items centered |
justify-items-end |
justify-items: end | Grid items inline end |
justify-items-stretch |
justify-items: stretch | Grid items stretch (default) |
justify-self-start |
justify-self: start | একটি item-র individual justify |
justify-self-center |
justify-self: center | |
justify-self-end |
justify-self: end | |
content-start |
align-content: flex-start | Multi-line flex: start-এ |
content-center |
align-content: center | Multi-line flex: center-এ |
content-between |
align-content: space-between | Multi-line flex: between |
content-around |
align-content: space-around | Multi-line flex: around |
place-content-center |
place-content: center | align-content + justify-content একসাথে |
place-content-between |
place-content: space-between | |
place-self-center |
place-self: center | align-self + justify-self একসাথে |
place-self-auto |
place-self: auto |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🔲 Grid Layout
CSS Grid-এর সব শক্তি Tailwind-এর মাধ্যমে।
🔷 Grid Container
🔷 Grid Item — Span ও Placement
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
📍 Positioning
Element-কে page-এ সঠিক জায়গায় বসাও।
🔷 Position Type ও Coordinates
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🔲 Borders ও Outline
Border, Radius ও Outline-এর সব utility।
🔷 Border Width ও Color
🔷 Border Radius
🔷 Outline — Color, Style ও Offset
| Class | CSS |
|---|---|
outline |
outline-style: solid; outline-width: 1px |
outline-none |
outline: 2px solid transparent (accessibility safe) |
outline-solid |
outline-style: solid |
outline-dashed |
outline-style: dashed |
outline-dotted |
outline-style: dotted |
outline-double |
outline-style: double |
outline-2 |
outline-width: 2px |
outline-4 |
outline-width: 4px |
outline-blue-500 |
outline-color: oklch(…) |
outline-offset-0 |
outline-offset: 0px |
outline-offset-2 |
outline-offset: 2px |
outline-offset-4 |
outline-offset: 4px |
-outline-offset-1 |
outline-offset: -1px (inset) |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🖼️ Backgrounds
Background color, gradient, image ও size।
🔷 Gradient
🔷 Tailwind v4 — Radial ও Conic Gradient
🔷 Background Image ও Size
🔷 Background Attachment ও Origin
| Class | CSS | কাজ |
|---|---|---|
bg-fixed |
background-attachment: fixed | Scroll করলেও BG নড়ে না (parallax) |
bg-local |
background-attachment: local | Element scroll-এর সাথে |
bg-scroll |
background-attachment: scroll (default) | Page scroll-এর সাথে |
bg-origin-border |
background-origin: border-box | Border থেকে BG শুরু |
bg-origin-padding |
background-origin: padding-box (default) | Padding থেকে BG শুরু |
bg-origin-content |
background-origin: content-box | Content থেকে BG শুরু |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🌟 Shadows ও Effects
Box shadow, text shadow ও visual effects।
🔷 Box Shadow
🔷 Ring (Focus Outline)
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🔍 Filters
CSS filter effects Tailwind-এর মাধ্যমে।
🔷 Filter Utilities
🔷 Backdrop Filter
🔷 Saturate Filter ও বাকি Backdrop Filters
| Class | CSS |
|---|---|
saturate-0 |
filter: saturate(0) — grayscale |
saturate-50 |
filter: saturate(.5) |
saturate-100 |
filter: saturate(1) — normal |
saturate-150 |
filter: saturate(1.5) |
saturate-200 |
filter: saturate(2) — vivid |
backdrop-grayscale |
backdrop-filter: grayscale(100%) |
backdrop-grayscale-0 |
backdrop-filter: grayscale(0) |
backdrop-hue-rotate-90 |
backdrop-filter: hue-rotate(90deg) |
backdrop-invert |
backdrop-filter: invert(100%) |
backdrop-invert-0 |
backdrop-filter: invert(0) |
backdrop-opacity-50 |
backdrop-filter: opacity(0.5) |
backdrop-saturate-50 |
backdrop-filter: saturate(.5) |
backdrop-saturate-150 |
backdrop-filter: saturate(1.5) |
backdrop-sepia |
backdrop-filter: sepia(100%) |
backdrop-sepia-0 |
backdrop-filter: sepia(0) |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🔄 Transforms ও 3D
Element-কে rotate, scale, translate ও 3D transform করো।
🔷 2D Transforms
🔷 3D Transforms (Tailwind v4 নতুন!)
🔷 Skew Transform
| Class | CSS | ব্যবহার |
|---|---|---|
skew-x-3 |
transform: skewX(3deg) | Subtle horizontal skew |
skew-x-6 |
transform: skewX(6deg) | |
skew-x-12 |
transform: skewX(12deg) | |
-skew-x-6 |
transform: skewX(-6deg) | Reverse direction |
skew-y-3 |
transform: skewY(3deg) | Vertical skew |
skew-y-6 |
transform: skewY(6deg) | |
skew-x-[20deg] |
transform: skewX(20deg) | Arbitrary skew |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
✨ Transitions ও Animation
Smooth animation ও micro-interaction তৈরি করো।
🔷 Transitions
🔷 Animation
🔷 @starting-style — Enter/Exit Transition (v4 নতুন!)
@starting-style at-rule ব্যবহার করে।
🔷 transition-behavior — discrete transitions (v4)
Tailwind v4-তে নতুন transition-discrete utility দিয়ে display: none থেকে
animate করা যায় — JavaScript ছাড়াই modal/dropdown hide/show animate করো।
| Class | CSS |
|---|---|
transition-discrete |
transition-behavior: allow-discrete |
transition-normal |
transition-behavior: normal (default) |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
📱 Responsive Design
Mobile-first approach-এ responsive layout তৈরি করো।
🔷 Breakpoints — Mobile First
| Prefix | Min Width | Device |
|---|---|---|
| (none) | 0px | Mobile (সব screen) |
sm: |
640px | Small tablet |
md: |
768px | Tablet |
lg: |
1024px | Laptop |
xl: |
1280px | Desktop |
2xl: |
1536px | Large Desktop |
🔷 Max-width Variants (v4 নতুন!)
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🌙 Dark Mode
সহজেই dark mode support যোগ করো।
🔷 Dark Mode — Automatic (System Preference)
🔷 Manual Dark Mode Toggle (CSS v4)
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
📦 Container Queries
Viewport নয়, parent container-এর আকার অনুযায়ী style করো।
🔷 Container Queries — Tailwind v4 Built-in
Reusable component যা বিভিন্ন জায়গায় ব্যবহার হয় → Sidebar-এর ভেতরের content → Widget বা Card যা বিভিন্ন layout-এ থাকতে পারে
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🖱️ Hover, Focus ও State Variants
Interactive state অনুযায়ী style পরিবর্তন করো।
🔷 Interaction States
🔷 Form States
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🔮 Pseudo Elements ও Selectors
::before, ::after ও structural selectors।
🔷 Before ও After
🔷 Structural Selectors
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🔧 Arbitrary Values — Custom Value ব্যবহার করো
Tailwind-এর scale-এর বাইরে যেকোনো value ব্যবহার করতে square bracket notation।
🔷 Arbitrary Value Syntax
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🎨 Custom Theme ও CSS Variables
Tailwind v4-এর CSS-first configuration দিয়ে নিজের design system তৈরি করো।
🔷 @theme — CSS-first Configuration (v4)
🔷 CSS Variables as Design Tokens
🔷 Theme Override ও Extend
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
📜 Directives — @apply, @layer ও আরো
Tailwind-এর CSS directive গুলো দিয়ে custom class তৈরি করো।
🔷 @apply — Class Reuse করো
🔷 @layer — CSS স্তর
🔷 @source ও @import
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🔌 Plugins
Official ও community plugin দিয়ে Tailwind আরো শক্তিশালী করো।
🔷 Official Plugins
🔷 Custom Plugin তৈরি (v4)
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🚀 Tailwind CSS v4 — কী কী নতুন?
2025 সালে release হওয়া v4-এর সব major changes এক জায়গায়।
🔷 v4 এর Major Changes
| Feature | v3 | v4 |
|---|---|---|
| Config file | tailwind.config.js | @theme in CSS ✅ |
| Installation | 3+ steps | 1 line CSS ✅ |
| Content detection | manual config | Automatic ✅ |
| Color palette | RGB | OKLCH (vivid) ✅ |
| Container queries | Plugin লাগতো | Built-in ✅ |
| 3D transforms | ❌ | ✅ Built-in |
| Gradients | Linear only | Radial, Conic ✅ |
| Build speed | baseline | 5x faster ✅ |
| Dynamic values | Config দরকার | Any value ✅ |
| @starting-style | ❌ | ✅ Enter/exit anim |
| not-* variant | ❌ | ✅ |
| Max-width breakpoints | Limited | max-sm:, max-lg: ✅ |
🔷 v3 থেকে v4 Upgrade করো
v4-তে সব default color OKLCH format-এ। OKLCH হলো perceptually uniform color space — এতে একই "lightness" value মানে সব রঙে আসলেই একই উজ্জ্বলতা। নতুন project-এ v4 ব্যবহার করো, পুরনো project-এ upgrade tool ব্যবহার করো।
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🧹 Preflight — Base Styles ও Editor Setup
Tailwind-এর default reset styles এবং সঠিকভাবে editor configure করার পদ্ধতি।
🔷 Preflight — Browser Default Reset
Preflight হলো Tailwind-এর built-in CSS reset। @import "tailwindcss" করলে
এটি automatically apply হয়।
Browser-এর inconsistent default styles সরিয়ে দেয় এবং সব উপাদানে predictable baseline দেয়।
| Browser Default | Preflight-এর পরে |
|---|---|
h1–h6 নিজস্ব size ও margin |
সব heading unstyled, inherit করে |
ul/ol bullet/number আছে |
list-style: none, padding: 0 |
img inline element |
display: block, max-width: 100% |
button নিজস্ব style |
cursor: pointer, background: transparent |
* box-sizing: content-box |
box-sizing: border-box সব কিছুতে |
a নীল underline |
color inherit করে |
🔷 Editor Setup — VS Code IntelliSense
Tailwind CSS IntelliSense extension VS Code-এ install করলে class name autocomplete, hover preview এবং linting পাবে।
Compatibility ও Browser Support
🔷 Detecting Classes — Source File Scanning
Tailwind v4 automatically তোমার source file scan করে কোন class ব্যবহার হচ্ছে বের করে।
v3-এ content config করতে হত, v4-এ এটি automatic।
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
📊 Tables — Border, Layout ও Caption
HTML table-এর styling-এর জন্য Tailwind-এর সব utilities।
🔷 Table Utilities বিস্তারিত
| Class | CSS | ব্যবহার |
|---|---|---|
border-collapse |
border-collapse: collapse | Cell border একসাথে merge |
border-separate |
border-collapse: separate | Cell border আলাদা আলাদা |
border-spacing-2 |
border-spacing: 0.5rem | Separate border-এ gap |
table-auto |
table-layout: auto | Content অনুযায়ী column width |
table-fixed |
table-layout: fixed | Fixed column width |
caption-top |
caption-side: top | Caption উপরে |
caption-bottom |
caption-side: bottom | Caption নিচে |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🖱️ Interactivity — Cursor, Scroll, Touch ও আরো
User interaction-এর জন্য Tailwind-এর সব utility — cursor থেকে scroll snap পর্যন্ত।
🔷 Cursor ও User Interaction
| Class | CSS | কখন? |
|---|---|---|
cursor-pointer |
cursor: pointer | Clickable element |
cursor-not-allowed |
cursor: not-allowed | Disabled element |
cursor-grab |
cursor: grab | Draggable item |
cursor-text |
cursor: text | Text input area |
cursor-wait |
cursor: wait | Loading state |
cursor-crosshair |
cursor: crosshair | Canvas/drawing |
cursor-zoom-in |
cursor: zoom-in | Image gallery |
select-none |
user-select: none | Text selection বন্ধ |
select-all |
user-select: all | সব select হবে |
pointer-events-none |
pointer-events: none | Click through করবে |
touch-auto |
touch-action: auto | Browser default touch |
touch-none |
touch-action: none | Touch disabled |
touch-pan-x |
touch-action: pan-x | Horizontal swipe |
resize |
resize: both | Textarea resizable |
resize-none |
resize: none | Resize বন্ধ |
resize-y |
resize: vertical | শুধু vertical |
appearance-none |
appearance: none | Native styling সরাও |
will-change-transform |
will-change: transform | Performance hint |
🔷 Caret, Accent ও Form Interactivity
| Class | CSS | ব্যবহার |
|---|---|---|
caret-blue-500 |
caret-color: #3b82f6 | Input cursor রঙ |
caret-transparent |
caret-color: transparent | Cursor লুকাও |
accent-blue-500 |
accent-color: #3b82f6 | Checkbox/radio রঙ |
accent-auto |
accent-color: auto | Browser default |
color-scheme-light |
color-scheme: light | Light scrollbar |
color-scheme-dark |
color-scheme: dark | Dark scrollbar |
field-sizing-content |
field-sizing: content | Auto-resize textarea (v4) |
field-sizing-fixed |
field-sizing: fixed | Fixed size textarea |
🔷 Scroll Snap ও Scroll Behavior
| Class | CSS |
|---|---|
scroll-smooth |
scroll-behavior: smooth |
scroll-auto |
scroll-behavior: auto |
snap-x |
scroll-snap-type: x mandatory |
snap-y |
scroll-snap-type: y mandatory |
snap-both |
scroll-snap-type: both mandatory |
snap-mandatory |
…mandatory |
snap-proximity |
…proximity |
snap-start |
scroll-snap-align: start |
snap-center |
scroll-snap-align: center |
snap-end |
scroll-snap-align: end |
snap-always |
scroll-snap-stop: always |
scroll-mt-4 |
scroll-margin-top: 1rem |
scroll-pt-4 |
scroll-padding-top: 1rem |
scrollbar-thin |
scrollbar-width: thin |
scrollbar-none |
scrollbar-width: none |
scrollbar-auto |
scrollbar-width: auto |
scrollbar-color-blue-500/gray-100 |
scrollbar-color: thumb track |
scrollbar-gutter-auto |
scrollbar-gutter: auto (default) |
scrollbar-gutter-stable |
scrollbar-gutter: stable — scrollbar space always reserved (layout jump নেই) |
scrollbar-gutter-stable-both-edges |
scrollbar-gutter: stable both-edges |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🎨 SVG Utilities ও Accessibility
Icon এবং SVG-এর styling এবং accessibility-র জন্য Tailwind utilities।
🔷 SVG — Fill ও Stroke
| Class | CSS | ব্যবহার |
|---|---|---|
fill-current |
fill: currentColor | Text color inherit করে |
fill-blue-500 |
fill: #3b82f6 | নির্দিষ্ট রঙ |
fill-none |
fill: none | Fill বন্ধ |
stroke-current |
stroke: currentColor | Outline color inherit |
stroke-blue-500 |
stroke: #3b82f6 | নির্দিষ্ট stroke রঙ |
stroke-1 |
stroke-width: 1 | Thin stroke |
stroke-2 |
stroke-width: 2 | Normal stroke |
stroke-[1.5] |
stroke-width: 1.5 | Arbitrary stroke |
stroke-none |
stroke: none | Stroke বন্ধ |
🔷 Accessibility Utilities
| Class | CSS | ব্যবহার |
|---|---|---|
sr-only |
position: absolute; width: 1px; height: 1px; overflow: hidden… | Screen reader-এ দেখাবে, visually লুকানো |
not-sr-only |
sr-only reset | sr-only বাতিল করো |
forced-color-adjust-auto |
forced-color-adjust: auto | Windows High Contrast mode |
forced-color-adjust-none |
forced-color-adjust: none | Custom colors maintain করো |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🎭 Masks ও Blend Modes — v4.1 নতুন
Mask utilities দিয়ে element-এর দৃশ্যমানতা নিয়ন্ত্রণ করো। Blend modes দিয়ে layer mixing করো।
🔷 Mask Image Utilities (Tailwind v4.1 নতুন!)
mask-* utilities দিয়ে element-এর কোন অংশ দেখাবে তা control করা যায়।
Image, gradient অথবা SVG দিয়ে mask তৈরি করো।
| Class | CSS | কাজ |
|---|---|---|
mask-none |
mask-image: none | Mask বন্ধ |
mask-linear-to-r |
mask-image: linear-gradient(to right, …) | Right-এ fade out |
mask-linear-to-b |
mask-image: linear-gradient(to bottom, …) | Bottom-এ fade out |
mask-radial |
mask-image: radial-gradient(…) | Center থেকে fade |
mask-from-black |
--mask-from-color: #000 | Visible start |
mask-to-transparent |
--mask-to-color: transparent | Transparent end |
mask-size-cover |
mask-size: cover | Cover the element |
mask-repeat-no-repeat |
mask-repeat: no-repeat | No repeat |
mask-clip-content |
mask-clip: content-box | Content area-য় clip |
mask-composite-add |
mask-composite: add | Multiple mask যোগ |
mask-composite-intersect |
mask-composite: intersect | Intersection |
mask-alpha |
mask-mode: alpha | Alpha channel use |
mask-luminance |
mask-mode: luminance | Brightness use |
mask-position-center |
mask-position: center | Mask position |
mask-position-top |
mask-position: top | |
mask-origin-content |
mask-origin: content-box | Mask origin |
mask-origin-border |
mask-origin: border-box | |
mask-origin-padding |
mask-origin: padding-box | |
mask-type-alpha |
mask-type: alpha | SVG mask type |
mask-type-luminance |
mask-type: luminance |
🔷 Text Shadow (Tailwind v4.1 নতুন!)
| Class | CSS |
|---|---|
text-shadow-2xs |
text-shadow: 0 1px 0 rgba(0,0,0,0.15) |
text-shadow-xs |
text-shadow: 0 1px 1px rgba(0,0,0,0.15) |
text-shadow-sm |
text-shadow: 0 1px 2px rgba(0,0,0,0.15) |
text-shadow-md |
text-shadow: 0 2px 4px rgba(0,0,0,0.15) |
text-shadow-lg |
text-shadow: 0 4px 8px rgba(0,0,0,0.15) |
text-shadow-none |
text-shadow: none |
text-shadow-blue-500 |
--tw-text-shadow-color: #3b82f6 |
🔷 Mix Blend Mode ও Background Blend Mode
| Class | CSS | Effect |
|---|---|---|
mix-blend-multiply |
mix-blend-mode: multiply | Darker colors multiply হয় |
mix-blend-screen |
mix-blend-mode: screen | Colors lighten হয় |
mix-blend-overlay |
mix-blend-mode: overlay | Contrast বাড়ায় |
mix-blend-darken |
mix-blend-mode: darken | Dark color রাখে |
mix-blend-lighten |
mix-blend-mode: lighten | Light color রাখে |
mix-blend-color-dodge |
mix-blend-mode: color-dodge | Bright effect |
mix-blend-difference |
mix-blend-mode: difference | Inverted look |
mix-blend-exclusion |
mix-blend-mode: exclusion | Softer difference |
mix-blend-hue |
mix-blend-mode: hue | Hue of top, base lum/sat |
mix-blend-normal |
mix-blend-mode: normal | Default |
bg-blend-multiply |
background-blend-mode: multiply | BG layers blend |
bg-blend-screen |
background-blend-mode: screen |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🌐 Logical Properties — RTL/LTR Support
Logical properties দিয়ে Left-to-Right এবং Right-to-Left উভয় ভাষার layout সহজে সমর্থন করো।
🔷 Logical Properties কী এবং কেন?
সাধারণত আমরা pl-4 লিখি মানে left padding। কিন্তু Arabic, Hebrew-এর মতো RTL (Right-to-Left)
ভাষায় এটি ভুল side-এ যাবে।
Logical properties (ps-4) writing direction অনুযায়ী automatically সঠিক side বেছে নেয়।
| Physical | Logical | LTR-তে | RTL-তে |
|---|---|---|---|
pl-4 |
ps-4 |
left | right |
pr-4 |
pe-4 |
right | left |
ml-4 |
ms-4 |
left | right |
mr-4 |
me-4 |
right | left |
text-left |
text-start |
left | right |
text-right |
text-end |
right | left |
border-l |
border-s |
left border | right border |
border-r |
border-e |
right border | left border |
rounded-l |
rounded-s |
left corners | right corners |
rounded-r |
rounded-e |
right corners | left corners |
w-* |
inline-size-* |
width | height (vertical text-এ) |
h-* |
block-size-* |
height | width (vertical text-এ) |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
✍️ Typography — বাকি সব Utilities
Typography section-এ যা বাদ পড়েছিল — white-space, content, hyphens ও আরো।
🔷 White Space ও Word Break
| Class | CSS | ব্যবহার |
|---|---|---|
whitespace-normal |
white-space: normal | Default |
whitespace-nowrap |
white-space: nowrap | Wrap বন্ধ |
whitespace-pre |
white-space: pre | Space/newline maintain |
whitespace-pre-line |
white-space: pre-line | Newline maintain |
whitespace-pre-wrap |
white-space: pre-wrap | Pre + wrap |
whitespace-break-spaces |
white-space: break-spaces | Space break allowed |
break-normal |
overflow-wrap: normal; word-break: normal | Default break |
break-words |
overflow-wrap: break-word | Long word break |
break-all |
word-break: break-all | Any character-এ break |
break-keep |
word-break: keep-all | CJK text break |
hyphens-none |
hyphens: none | Hyphenation বন্ধ |
hyphens-manual |
hyphens: manual | Soft hyphen শুধু |
hyphens-auto |
hyphens: auto | Auto hyphenation |
🔷 Text Indent, Tab Size ও Vertical Align
| Class | CSS |
|---|---|
indent-4 |
text-indent: 1rem |
indent-8 |
text-indent: 2rem |
indent-[3ch] |
text-indent: 3ch (arbitrary) |
tab-2 |
tab-size: 2 |
tab-4 |
tab-size: 4 |
align-baseline |
vertical-align: baseline |
align-top |
vertical-align: top |
align-middle |
vertical-align: middle |
align-bottom |
vertical-align: bottom |
align-text-top |
vertical-align: text-top |
align-sub |
vertical-align: sub |
align-super |
vertical-align: super |
🔷 Content Property ও List Style
| Class | CSS |
|---|---|
list-disc |
list-style-type: disc |
list-decimal |
list-style-type: decimal |
list-none |
list-style-type: none |
list-inside |
list-style-position: inside |
list-outside |
list-style-position: outside |
list-image-[url(...)] |
list-style-image: url(…) |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
📐 Layout — বাকি সব Utilities
Columns, Float, Aspect Ratio, Box Sizing, Visibility — যা আগে বাদ পড়েছিল।
🔷 Columns — Multi-column Layout
| Class | CSS | ব্যবহার |
|---|---|---|
columns-2 |
columns: 2 | 2 column newspaper layout |
columns-3 |
columns: 3 | 3 column layout |
columns-sm |
columns: 24rem | Min width-based columns |
columns-md |
columns: 28rem | |
break-before-column |
break-before: column | Column break force করো |
break-inside-avoid |
break-inside: avoid | Element-এর মাঝে break না |
break-after-page |
break-after: page | Print page break |
🔷 Aspect Ratio, Float ও অন্যান্য
| Class | CSS | ব্যবহার |
|---|---|---|
aspect-square |
aspect-ratio: 1/1 | Perfect square |
aspect-video |
aspect-ratio: 16/9 | Video embed |
aspect-auto |
aspect-ratio: auto | Default |
aspect-3/4 |
aspect-ratio: 3/4 | Portrait image |
float-left |
float: left | Text wrap around image |
float-right |
float: right | |
float-none |
float: none | Float reset |
clear-left |
clear: left | Float bypass |
clear-both |
clear: both | Both float clear |
box-border |
box-sizing: border-box | Padding/border included in size |
box-content |
box-sizing: content-box | Padding/border excluded |
isolate |
isolation: isolate | New stacking context |
isolation-auto |
isolation: auto | Default |
visible |
visibility: visible | Visible (space নেয়) |
invisible |
visibility: hidden | Hidden (space নেয়) |
collapse |
visibility: collapse | Table row/column hide |
z-0 – z-50 |
z-index: 0–50 | Stacking order |
z-auto |
z-index: auto | Default stacking |
z-[100] |
z-index: 100 | Arbitrary z-index |
🔷 Object Position ও Box Decoration Break
| Class | CSS | কাজ |
|---|---|---|
object-center |
object-position: center | Image center align |
object-top |
object-position: top | Image top align |
object-bottom |
object-position: bottom | Image bottom align |
object-left |
object-position: left | Image left align |
object-right |
object-position: right | Image right align |
object-left-top |
object-position: left top | Top-left corner |
object-[25%_75%] |
object-position: 25% 75% | Arbitrary position |
box-decoration-clone |
box-decoration-break: clone | Multi-line span: প্রতিটি line fragment নিজের padding/border পাবে |
box-decoration-slice |
box-decoration-break: slice | Multi-line span: ধারাবাহিক একটি element |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
🔭 Transform — Perspective ও Advanced
Backface visibility, perspective, zoom ও transform-style utilities।
🔷 Perspective ও 3D Transform Advanced
| Class | CSS | ব্যবহার |
|---|---|---|
perspective-none |
perspective: none | 3D depth বন্ধ |
perspective-dramatic |
perspective: 100px | Strong depth effect |
perspective-near |
perspective: 300px | Close perspective |
perspective-normal |
perspective: 500px | Normal depth |
perspective-midrange |
perspective: 800px | Mid perspective |
perspective-distant |
perspective: 1200px | Subtle depth |
perspective-[800px] |
perspective: 800px | Arbitrary |
perspective-origin-center |
perspective-origin: center | Center vanishing point |
perspective-origin-top-left |
perspective-origin: top left | |
transform-style-3d |
transform-style: preserve-3d | Children 3D space-এ |
transform-style-flat |
transform-style: flat | 2D flatten |
backface-visible |
backface-visibility: visible | Back face দেখা যায় |
backface-hidden |
backface-visibility: hidden | Back face লুকানো |
zoom-in |
zoom: in | Zoom in cursor |
zoom-out |
zoom: out | Zoom out cursor |
zoom-normal |
zoom: 1 | No zoom |
zoom-[150%] |
zoom: 150% | Arbitrary zoom |
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!
📋 Class Reference — সম্পূর্ণ Quick Lookup
Tailwind CSS-এর সব category-র গুরুত্বপূর্ণ class এক জায়গায় — চট করে খুঁজে নাও।
🔷 Layout Quick Reference
| Class | CSS / কাজ |
|---|---|
container mx-auto px-4 |
Centered responsive container |
block / inline-block / inline |
Display type |
hidden |
display: none |
hidden md:block |
Desktop-only element |
block md:hidden |
Mobile-only element |
aspect-video |
aspect-ratio: 16/9 — Video embed |
aspect-square |
aspect-ratio: 1/1 — Perfect square |
columns-3 gap-4 |
3-column masonry layout |
float-left mr-4 |
Float image (text wrap) |
overflow-hidden |
Clip overflow content |
overflow-x-auto |
Horizontal scroll |
overscroll-contain |
Prevent scroll chaining |
isolate |
New stacking context |
visible / invisible |
Show/hide (space রাখে) |
z-10 / z-50 / z-[100] |
Z-index stacking |
box-border |
box-sizing: border-box (default in Tailwind) |
🔷 Flexbox Quick Reference
| Class | CSS / কাজ |
|---|---|
flex items-center justify-between |
Flex with space between |
flex items-center justify-center |
Center everything |
flex flex-col gap-4 |
Vertical flex with gap |
flex-wrap |
Wrap to next line |
flex-1 |
flex: 1 1 0% — grow to fill |
flex-none |
flex: none — no grow/shrink |
shrink-0 |
flex-shrink: 0 |
grow |
flex-grow: 1 |
order-first / order-last |
Visual reorder |
basis-1/2 |
flex-basis: 50% |
self-start / self-end / self-center |
Individual align |
🔷 Grid Quick Reference
| Class | CSS / কাজ |
|---|---|
grid grid-cols-3 gap-6 |
3 column grid |
grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 |
Responsive grid |
col-span-2 |
2 column span |
col-start-2 col-end-4 |
Specific column placement |
grid-rows-3 |
3 rows defined |
row-span-2 |
2 row span |
grid-flow-col |
Column-first auto placement |
auto-cols-fr |
Equal-width auto columns |
auto-rows-auto |
grid-auto-rows: auto |
auto-rows-fr |
grid-auto-rows: minmax(0,1fr) |
auto-rows-min |
grid-auto-rows: min-content |
auto-rows-max |
grid-auto-rows: max-content |
place-items-center |
Center items in grid cells |
🔷 Spacing ও Sizing Quick Reference
| Class | Value | কাজ |
|---|---|---|
p-4 |
padding: 1rem | All sides |
px-6 py-3 |
Horizontal/Vertical | Button padding |
pt-4 pb-8 |
Top/Bottom | Section padding |
ps-4 pe-4 |
Inline start/end | RTL-safe padding |
m-auto |
margin: auto | Center element |
mx-auto |
Horizontal auto | Center horizontally |
-mt-4 |
Negative margin | Overlap elements |
space-x-4 |
Horizontal child gap | Flex child spacing |
space-y-2 |
Vertical child gap | List item spacing |
w-full / w-1/2 / w-64 |
100% / 50% / 16rem | Width |
h-screen / h-full / h-64 |
100vh / 100% / 16rem | Height |
min-h-screen |
min-height: 100vh | Full page section |
max-w-xl / max-w-4xl |
Responsive max-width | Content container |
size-6 |
width+height: 1.5rem | Icon sizing (v4) |
inline-size-full |
inline-size: 100% | Logical width |
🔷 Typography Quick Reference
| Class | CSS / কাজ |
|---|---|
text-xl font-bold |
1.25rem bold |
text-sm text-gray-500 |
Small muted text |
text-3xl font-black tracking-tight |
Display heading |
leading-relaxed |
line-height: 1.625 |
tracking-wide / tracking-tight |
letter-spacing |
line-clamp-2 |
2 লাইনে truncate |
text-balance |
Balanced text wrap (headings-এ) |
text-pretty |
Better orphan control |
whitespace-nowrap |
No text wrapping |
truncate |
overflow:hidden + ellipsis |
break-words |
Long URL/word break |
indent-8 |
First line indent |
uppercase / lowercase / capitalize |
Text transform |
underline decoration-2 decoration-blue-500 |
Custom underline |
font-stretch-expanded |
Variable font width |
text-shadow-md |
Text shadow (v4.1) |
antialiased |
Smooth font rendering |
tabular-nums |
Monospace numbers |
🔷 Colors ও Background Quick Reference
| Class | CSS / কাজ |
|---|---|
bg-blue-500 |
background-color: oklch(…) (v4) |
bg-blue-500/50 |
50% opacity background |
text-gray-900 |
Dark text color |
text-white/80 |
80% opacity white text |
bg-linear-to-r from-blue-500 to-purple-500 |
Linear gradient → |
bg-linear-45 from-pink-500 to-orange-400 |
45° gradient (v4) |
bg-radial from-white to-blue-100 |
Radial gradient (v4) |
bg-conic from-red-500 via-blue-500 to-red-500 |
Conic gradient (v4) |
bg-cover bg-center |
Background image cover |
bg-no-repeat |
No background repeat |
bg-clip-text text-transparent |
Gradient text effect |
bg-white/80 backdrop-blur-md |
Frosted glass effect |
🔷 Borders ও Effects Quick Reference
| Class | CSS / কাজ |
|---|---|
border border-gray-300 |
1px solid border |
border-2 border-blue-500 |
2px colored border |
border-t border-b |
Top/bottom border only |
border-s border-e |
Logical start/end border (RTL) |
border-dashed / border-dotted |
Border style |
rounded-lg / rounded-xl / rounded-full |
Border radius |
rounded-t-xl |
Top only radius |
outline-none |
Remove focus outline |
ring-2 ring-blue-500 |
Focus ring |
ring-offset-2 |
Ring with offset |
shadow-md / shadow-xl |
Box shadow |
shadow-blue-500/20 |
Colored shadow (v4) |
inset-shadow-sm |
Inner shadow (v4) |
opacity-50 |
50% opacity |
mix-blend-multiply |
Layer blend mode |
🔷 Interactivity ও State Quick Reference
| Class/Pattern | কাজ |
|---|---|
cursor-pointer / cursor-not-allowed |
Cursor type |
select-none |
Text selection বন্ধ |
pointer-events-none |
Click-through করে |
resize-none |
Textarea resize বন্ধ |
appearance-none |
Native style reset (select, input) |
caret-blue-500 |
Input cursor রঙ |
accent-blue-500 |
Checkbox/radio রঙ |
field-sizing-content |
Auto-resize textarea (v4) |
snap-x snap-mandatory |
Horizontal scroll snap |
snap-center |
Child snap alignment |
scroll-smooth |
Smooth scroll behavior |
scrollbar-thin scrollbar-none |
Scrollbar styling |
will-change-transform |
GPU acceleration hint |
touch-pan-y |
Touch scroll direction control |
🔷 State Variant Patterns
| Pattern | কাজ |
|---|---|
hover:bg-blue-700 transition-colors |
Smooth color hover |
hover:scale-105 transition-transform |
Scale up on hover |
hover:shadow-xl transition-shadow |
Shadow on hover |
active:scale-95 |
Click press feedback |
focus:ring-2 focus:ring-blue-500 outline-none |
Custom focus ring |
focus-visible:ring-2 |
Keyboard-only focus |
disabled:opacity-50 disabled:cursor-not-allowed |
Disabled state |
group hover:group-hover:opacity-100 |
Parent hover trigger |
peer-focus:text-blue-500 |
Sibling state trigger |
dark:bg-gray-900 dark:text-white |
Dark mode styles |
sm:grid-cols-2 lg:grid-cols-4 |
Responsive breakpoints |
@sm:grid-cols-2 |
Container query breakpoint |
first:pt-0 last:pb-0 |
First/last child |
odd:bg-gray-50 even:bg-white |
Alternating rows |
not-[:last-child]:border-b |
:not() pseudo-class (v4) |
in-[.dark]:text-white |
Parent context (v4) |
nth-[2n+1]:bg-blue-50 |
nth-child pattern (v4) |
🔷 SVG ও Accessibility Quick Reference
| Class | কাজ |
|---|---|
fill-current |
SVG fill = current text color |
fill-blue-500 |
SVG নির্দিষ্ট রঙ |
stroke-current stroke-2 |
Outline SVG icon |
size-5 fill-current |
Icon (w+h একসাথে) |
sr-only |
Screen reader শুধু (visually hidden) |
not-sr-only |
sr-only reset |
forced-color-adjust-auto |
Windows High Contrast mode |
🔷 Tables Quick Reference
| Class | CSS / কাজ |
|---|---|
border-collapse |
Cell borders merge |
border-separate border-spacing-2 |
Separated borders with gap |
table-auto |
Content-based column width |
table-fixed |
Fixed column width |
caption-bottom |
Caption নিচে |
🔷 Masks ও Effects Quick Reference (v4.1)
| Class | কাজ |
|---|---|
mask-linear-to-b mask-from-black mask-to-transparent |
Bottom fade out |
mask-radial |
Center to edge fade |
text-shadow-md |
Medium text shadow |
text-shadow-lg text-shadow-blue-500 |
Colored text shadow |
mix-blend-multiply |
Layer blend (dark effect) |
mix-blend-screen |
Layer blend (light effect) |
bg-blend-overlay |
Background image blend |
🔷 Logical Properties Quick Reference
| Physical | Logical | RTL-safe? |
|---|---|---|
pl-4 / pr-4 |
ps-4 / pe-4 |
✅ |
ml-4 / mr-4 |
ms-4 / me-4 |
✅ |
text-left / text-right |
text-start / text-end |
✅ |
border-l / border-r |
border-s / border-e |
✅ |
rounded-l / rounded-r |
rounded-s / rounded-e |
✅ |
🔷 Common UI Patterns — Copy-Paste Ready
১. play.tailwindcss.com — browser-এ সরাসরি practice করো
২. VS Code-এ Tailwind CSS IntelliSense extension — autocomplete ও hover preview
③. tailwindcss.com/docs — official docs bookmark করো
④. Real project বানাও — একটি landing page দিয়ে শুরু করো
মাশাআল্লাহ! 🎉 এই section শেষ করেছেন — অসাধারণ! প্রজেক্টের কোডগুলো দেখে দেখে VS Code-এ নিজে টাইপ করুন — copy-paste করবেন না। কারণ হাতে টাইপ করলেই স্মৃতিতে গেঁথে যায়, মাথায় থাকে, বাস্তব অভিজ্ঞতা হয়, সাহস বাড়ে। শুধু পড়ে বা দেখে কেউ কখনো developer হয়নি। চলুন পড়ি! হাতে কলমে শিখি!