T
برگه تقلب Tailwind
▶ پیش‌نمایش زنده — کلاس‌ها را تایپ کن و نتیجه را ببین
پیش‌نمایش
۱ چیدمان (Layout)
Containercontainer
Box sizingbox-borderbox-content
Displayblockinline-blockinlineflexinline-flexgridhidden
Positionstaticrelativeabsolutefixedsticky
Insetinset-0top-0bottom-4right-2left-1/2
Z-indexz-0z-10z-50-z-10
Overflowoverflow-hiddenoverflow-autooverflow-y-scroll
Widthw-1/2w-fullw-screenw-fit
Heighth-1/2h-fullh-screenh-fit
Max/Minmax-w-xsmax-w-2xlmax-w-fullmin-h-screen
۲ فاصله‌گذاری (Spacing)
Paddingp-4px-4py-4pt-4pe-4pb-4ps-4
Marginm-4mx-4my-4mt-4me-4mb-4ms-4mx-auto
Space betweenspace-x-4space-y-4space-y-reverse
Negative margin-mt-4-mx-2
مقیاس فاصله: 0, 0.5, 1, 1.5, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32... (هر واحد = 0.25rem)
۳ تایپوگرافی (Typography)
Font familyfont-sansfont-seriffont-mono
Font sizetext-xstext-smtext-basetext-lgtext-2xltext-4xltext-6xl
Font weightfont-lightfont-normalfont-mediumfont-semiboldfont-boldfont-extrabold
Text colortext-gray-500text-whitetext-blue-400
Text aligntext-lefttext-centertext-righttext-justify
Line heightleading-noneleading-tightleading-normalleading-loose
Letter spacingtracking-tightertracking-tighttracking-widetracking-widest
Transformuppercaselowercasecapitalize
Decorationunderlineline-throughno-underlinedecoration-dotted
Overflowtruncatetext-ellipsiswhitespace-nowrapbreak-words
۴ رنگ‌ها (Colors)
پالت کامل (هر رنگ سایه ۵۰ تا ۹۵۰ دارد)
متنtext-{color}-{shade}
پس‌زمینهbg-{color}-{shade}
حاشیهborder-{color}-{shade}
شفافیت رنگbg-blue-500/50text-white/80
۵ حاشیه و گوشه (Borders & Radius)
عرض حاشیهborderborder-2border-4border-t-2border-x-2
سبک حاشیهborder-solidborder-dashedborder-dotted
گردی گوشهroundedrounded-smrounded-mdrounded-lgrounded-xlrounded-2xlrounded-full
نمونه گردی گوشه
nonesmmdlgxlfull
۶ پس‌زمینه (Background)
رنگbg-blue-900
گرادینتbg-gradient-to-rfrom-blue-500via-purple-500to-pink-500
اندازهbg-coverbg-containbg-auto
موقعیتbg-centerbg-topbg-bottom
تکرارbg-no-repeatbg-repeatbg-repeat-x
چسبندگیbg-fixedbg-localbg-scroll
۷ فلکس و گرید (Flexbox & Grid)
Flexbox
flexflex-1flex-rowflex-col flex-wrapjustify-startjustify-center justify-betweenitems-centeritems-stretch gap-4
Grid
gridgrid-cols-1grid-cols-3 grid-cols-12col-span-2row-span-2 gap-4gap-x-4gap-y-4 place-items-center
۸ سایه‌ها (Shadows)
shadow-sm
shadow
shadow-md
shadow-lg
shadow-xl
shadow-2xl
shadow-sky-500/50
shadow-none
۹ افکت‌ها و ترنسفورم (Effects & Transforms)
شفافیتopacity-0opacity-50opacity-100
فیلترblur-smbrightness-110contrast-125grayscale
Backdropbackdrop-blurbackdrop-brightness-110
ترانزیشنtransitionduration-150ease-in-outdelay-100
اسکیل و چرخشscale-95scale-110rotate-6-rotate-12skew-x-6
جابه‌جاییtranslate-x-2-translate-y-1
انیمیشنanimate-spinanimate-pinganimate-pulseanimate-bounce
نشانگرcursor-pointercursor-not-allowedselect-none
۱۰ نقاط شکست ریسپانسیو (Breakpoints)
پیشوند نقطه شکست را قبل از کلاس اضافه کن تا فقط از آن عرض به بعد اعمال شود (mobile-first).
sm≥ 640px
md≥ 768px
lg≥ 1024px
xl≥ 1280px
2xl≥ 1536px
مثال:md:text-lglg:p-8xl:flex
۱۱ حالت‌های تعاملی (Interactive States)
Hoverhover:bg-blue-600
Focusfocus:outline-nonefocus:ring-2focus-visible:ring-2
Activeactive:scale-95
Disableddisabled:opacity-50disabled:cursor-not-allowed
Group / Peergroup-hover:text-whitepeer-checked:bg-sky-500
Dark modedark:bg-slate-900dark:text-white
First/Last/Oddfirst:mt-0last:mb-0odd:bg-slate-800
۱۲ مثال‌های کاربردی (Common Examples)
دکمه اصلی
bg-sky-600 hover:bg-sky-500 active:scale-95 text-white font-medium py-2 px-4 rounded-lg transition
ورودی فرم
border border-slate-700 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-sky-500 w-full bg-slate-900
برچسب وضعیت
فعال
bg-emerald-500/15 text-emerald-400 text-xs font-medium px-2.5 py-1 rounded-full
کپی شد!