DWIND Utility Classes Reference
Spacing
Margin
m-auto,m-x-auto,m-y-auto- Auto marginsm-t-{n},m-b-{n},m-l-{n},m-r-{n}- Individual sidesm-x-{n},m-y-{n}- Horizontal/vertical
Padding
p-{n}- All sidesp-t-{n},p-b-{n},p-l-{n},p-r-{n}- Individual sidespx-{n},py-{n}- Horizontal/vertical
Gap (Flex/Grid)
gap-{n}- All directionsspace-x-{n},space-y-{n}- Between children
Values: 0, 0-5, 1, 1-5, 2, 2-5, 3, 3-5, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 40, 48, 64, 80, 96
Typography
Font Family
font-sans- System sans-seriffont-serif- System seriffont-mono- Monospace
Font Weight
font-thin(100),font-extralight(200),font-light(300)font-normal(400),font-medium(500),font-semibold(600)font-bold(700),font-extrabold(800),font-black(900)
Font Size
text-xs(12px),text-sm(14px),text-base(16px),text-lg(18px)text-xl(20px),text-2xl(24px),text-3xl(30px),text-4xl(36px)text-5xl(48px),text-6xl(60px),text-7xl(72px),text-8xl(96px),text-9xl(128px)
Text Alignment
text-left,text-center,text-right
Line Height
leading-3toleading-10- Fixed valuesleading-none,leading-tight,leading-snug,leading-normal,leading-relaxed,leading-loose
Text Overflow
truncate- Ellipsis with nowraptext-ellipsis,text-clip
Colors
Background
bg-black,bg-white,bg-transparentbg-{color}-{shade}- e.g.,bg-blue-500,bg-gray-900
Text
text-black,text-white,text-transparenttext-{color}-{shade}- e.g.,text-blue-500
Border
border-black,border-white,border-transparentborder-{color}-{shade}- e.g.,border-gray-700
Gradients
linear-gradient-{0|45|90|135|180}- Angle directionsbg-gradient-to-{t|tr|r|br|b|bl|l|tl}- Named directionsgradient-from-{color}-{shade},gradient-to-{color}-{shade}
Color Palette: blue, green, yellow, orange, red, purple, gray, woodsmoke, bunker, apple, candlelight, picton-blue Shades: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950
Layout
Display
block,inline-block,inline,hiddenflex,inline-flex,grid,inline-gridtable,table-row,table-cellcontents,flow-root
Flexbox
flex-row,flex-col,flex-row-reverse,flex-col-reverseflex-wrap,flex-nowrap,flex-wrap-reverseflex-1,flex-auto,flex-initial,flex-nonegrow,grow-0,shrink,shrink-0
Justify Content
justify-start,justify-center,justify-endjustify-between,justify-around,justify-evenly,justify-stretch
Align Items
align-items-start,align-items-center,align-items-endalign-items-baseline,align-items-stretch- Also:
items-start,items-center,items-end,items-baseline,items-stretch
Align Self
self-auto,self-start,self-center,self-end,self-stretch
Grid
grid-cols-{1-12},grid-cols-none,grid-cols-subgridcol-span-{1-12},col-span-fullrow-span-{1-12},row-span-fullgrid-flow-row,grid-flow-col,grid-flow-dense
Position
relative,absolute,fixed,stickytop-0,right-0,bottom-0,left-0(positioning values)
Z-Index
z-0,z-10,z-20,z-30,z-40,z-50,z-auto
Order
order-{1-12},order-first,order-last,order-none
Sizing
Width
w-full,w-autow-{n}- Fixed sizesw-p-{n}- Percentage (e.g.,w-p-50= 50%)max-w-{xs|sm|md|lg|xl|2xl}- Max widths
Height
h-full,h-auto,h-screenh-{n}- Fixed sizesmax-h-{n},min-h-{n}
Aspect Ratio
aspect-auto,aspect-square,aspect-video
Borders
Border Width
border- 1px all sidesborder-{t|r|b|l}-{n}- Individual sides
Border Style
border-solid,border-dashed,border-dotted,border-double,border-none
Border Radius
rounded-none,rounded-sm,rounded,rounded-md,rounded-lgrounded-xl,rounded-2xl,rounded-3xl,rounded-fullrounded-{t|r|b|l}-{size}- By siderounded-{tl|tr|br|bl}-{size}- By corner
Divide (between children)
divide-x,divide-y- Add borders between childrendivide-{color}-{shade}- Divide color
Effects
Box Shadow
shadow-sm,shadow,shadow-md,shadow-lg,shadow-xl,shadow-2xlshadow-inner,shadow-none
Ring (outline)
ring-0,ring-1,ring-2,ring,ring-4,ring-8ring-{color}-{shade}- Ring colorring-inset
Opacity
opacity-{0|5|10|20|25|30|50|60|70|75|80|90|95|100}
Interactivity
Cursor
cursor-auto,cursor-default,cursor-pointer,cursor-waitcursor-text,cursor-move,cursor-not-allowed,cursor-grab,cursor-grabbingcursor-col-resize,cursor-row-resize
Pointer Events
pointer-events-none,pointer-events-auto
User Select
select-none,select-text,select-all,select-auto
Overflow
overflow-auto,overflow-hidden,overflow-scroll,overflow-visibleoverflow-x-{auto|hidden|scroll|visible}overflow-y-{auto|hidden|scroll|visible}
Animations
animate-spin- Continuous rotationanimate-ping- Pulsing outwardanimate-pulse- Opacity fadeanimate-bounce- Vertical bounce
Transitions
transition- Default transitiontransition-all,transition-colors,transition-opacityduration-{75|100|150|200|300|500|700|1000}