Tailwind CSS চিট শিট
একটি অনুসন্ধানযোগ্য, প্রিন্টযোগ্য Tailwind CSS রেফারেন্স: লেআউট, flexbox, grid, স্পেসিং, টাইপোগ্রাফি, রং, স্টেট ও রেসপন্সিভ প্রিফিক্স। বিনামূল্যে।
Layout
12container mx-auto px-4
block / inline-block / inline
flex / grid / hidden
relative / absolute / fixed / sticky
inset-0
top-4 right-2 bottom-0 left-1/2
z-10 / z-50 / z-[999]
overflow-hidden / overflow-y-auto
float-right / clear-both
box-border / box-content
isolation-isolate
object-cover object-center
Flexbox
12flex flex-row / flex-col
flex-wrap / flex-nowrap
items-center / items-start / items-end
justify-center / justify-between
justify-start / justify-end / justify-around
gap-4 / gap-x-2 / gap-y-6
flex-1
flex-none / flex-auto
grow / grow-0 / shrink-0
basis-1/2 / basis-64
self-center / self-stretch
order-first / order-2 / order-last
Grid
12grid grid-cols-3 gap-4
grid-cols-[200px_1fr]
col-span-2 / col-span-full
col-start-2 col-end-4
grid-rows-3 / row-span-2
grid-flow-col / grid-flow-dense
auto-cols-fr / auto-rows-min
place-items-center
place-content-center
justify-items-start / content-end
grid-cols-[repeat(auto-fill,minmax(250px,1fr))]
subgrid
Spacing
11p-4
px-4 py-2
pt-2 pr-4 pb-6 pl-8
m-4 / mx-auto
-mt-4
space-y-4
space-x-2
p-0 p-px p-0.5 p-1 ... p-96
p-[18px]
ps-4 / pe-4 / ms-auto
scroll-mt-24
Sizing
11w-full / w-screen
w-1/2 w-1/3 w-2/3 w-1/4
w-64 / w-px / w-[137px]
max-w-md / max-w-prose / max-w-7xl
min-w-0
h-full / h-screen / h-dvh
min-h-screen
max-h-96 overflow-y-auto
size-10
w-fit / w-max / w-min
aspect-square / aspect-video
Typography
13text-xs text-sm text-base text-lg text-xl
font-normal font-medium font-semibold font-bold
italic / not-italic
text-left / text-center / text-right
leading-tight / leading-relaxed
tracking-tight / tracking-wide
uppercase / capitalize / normal-case
underline / line-through / no-underline
truncate
whitespace-nowrap / break-words
font-sans / font-serif / font-mono
tabular-nums
text-balance / text-pretty
Colors & backgrounds
12text-gray-700 / text-blue-600
bg-white / bg-slate-900
bg-blue-500/50
text-white bg-black
bg-transparent / bg-current
bg-gradient-to-r from-blue-500 to-purple-600
via-pink-500
bg-cover bg-center bg-no-repeat
bg-[url('/img/hero.jpg')]
text-[#1da1f2]
accent-blue-600
fill-current / stroke-current
Borders, radius & shadows
12border border-gray-200
border-2 / border-t / border-b-4
border-dashed / border-dotted
rounded / rounded-lg / rounded-full
rounded-t-xl / rounded-l-none
shadow-sm shadow-md shadow-lg shadow-xl
shadow-none
shadow-blue-500/50
ring-2 ring-blue-500 ring-offset-2
outline-none focus-visible:ring-2
divide-y divide-gray-200
border-[3px] rounded-[14px]
States & responsive prefixes
14hover:bg-blue-600
focus:ring-2 / focus-visible:ring-2
active:scale-95
disabled:opacity-50
sm: md: lg: xl: 2xl:
hidden md:block
flex-col md:flex-row
dark:bg-gray-900 dark:text-white
group + group-hover:opacity-100
peer + peer-checked:block
first:pt-0 last:pb-0 odd:bg-gray-50
max-md:hidden
md:hover:bg-blue-700
motion-reduce:transition-none
Transitions & animation
12transition
transition-colors duration-200
duration-75 ... duration-1000
ease-in / ease-out / ease-in-out
delay-150
hover:scale-105 transition-transform
rotate-45 / -rotate-90
translate-x-4 / -translate-y-1/2
animate-spin
animate-pulse
animate-bounce / animate-ping
will-change-transform
Component recipes
13flex items-center justify-center
grid place-items-center
absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2
truncate
line-clamp-3
aspect-video w-full object-cover
sticky top-0 z-50 bg-white/80 backdrop-blur
fixed inset-0 bg-black/50
rounded-xl border bg-white p-6 shadow-sm
inline-flex items-center gap-2 rounded-lg px-4 py-2
sr-only
divide-y > li py-3
min-h-screen flex flex-col + footer mt-auto
Config & arbitrary values
13w-[137px] / top-[13%]
bg-[#bada55] / text-[22px]
grid-cols-[1fr_2fr_1fr]
w-[calc(100%-2rem)]
text-(--brand-color)
[&>li]:mt-2
[&:nth-child(3)]:bg-red-100
has-[:checked]:ring-2
data-[state=open]:rotate-180
@theme { --color-brand: #1e40af; }
theme.extend.colors.brand (v3)
@apply flex items-center gap-2;
!mt-0 (v3) / mt-0! (v4)
“:q”-এর সাথে কোনো এন্ট্রি মেলে না।
Tailwind CSS চিট শিট সম্পর্কে
এই Tailwind CSS চিট শিট আপনি প্রতিদিন যে ইউটিলিটি ক্লাসগুলোর জন্য হাত বাড়ান তা একটি অনুসন্ধানযোগ্য পৃষ্ঠায় তালিকাভুক্ত করে: লেআউট, flexbox, grid, স্পেসিং, সাইজিং, টাইপোগ্রাফি, রং ও ব্যাকগ্রাউন্ড, বর্ডার, radius ও shadow, স্টেট ও রেসপন্সিভ প্রিফিক্স, ট্রানজিশন ও অ্যানিমেশন, কম্পোনেন্ট রেসিপি, এবং config ও নির্বিচার মান।
প্রতিটি সারি ক্লাসকে এটি প্রকৃতপক্ষে কী করে তার সাথে জোড়া লাগায়, তাই এটি উভয় দিকেই একটি অনুবাদ টেবিল হিসেবে কাজ করে: আপনি জানা একটি CSS প্রপার্টির জন্য ইউটিলিটি খুঁজে দেখতে পারেন, অথবা অন্য কারো মার্কআপে একটি অপরিচিত ক্লাস কী করছে তা পরীক্ষা করতে পারেন।
শিটটি বিনামূল্যে এবং ক্লায়েন্ট-সাইড: সার্চ বক্স দিয়ে লাইভ সারি ফিল্টার করুন, স্টিকি সূচিপত্র দিয়ে বিভাগগুলোর মধ্যে লাফ দিন, এক ক্লিকে যেকোনো ক্লাস কপি করুন এবং একটি ডেস্ক রেফারেন্স হিসেবে পৃষ্ঠাটি প্রিন্ট করুন।
Tailwind CSS চিট শিট কীভাবে ব্যবহার করবেন
- বিভাগগুলো দেখুন, Layout ও Flexbox থেকে Colors & backgrounds হয়ে Config & arbitrary values পর্যন্ত।
- শিটটি লাইভ ফিল্টার করতে justify, gap বা shadow-এর মতো একটি ক্লাস বা CSS প্রপার্টি অনুসন্ধান করুন।
- hover, focus, dark mode এবং breakpoint ভ্যারিয়েন্টের জন্য States & responsive prefixes-এ যান।
- একটি ক্লাস বা এর কপি আইকনে ক্লিক করে এটি আপনার ক্লিপবোর্ডে কপি করুন।
- অফলাইন Tailwind রেফারেন্সের জন্য শিটটি প্রিন্ট করুন।