Skip to main content

Custome classes properties

Below is the full list of CSS properties

Dimensions

Class NameMapped PropertyDescriptionExample Usage
hheightSets the height of an elementh-[200px]
wwidthSets the width of an elementw-[100%]
minHmin-heightSets the minimum heightminH-[50px]
maxHmax-heightSets the maximum heightmaxH-[300px]
minWmin-widthSets the minimum widthminW-[100px]
maxWmax-widthSets the maximum widthmaxW-[400px]

Spacing

Class NameMapped PropertyDescriptionExample Usage
ppaddingSets padding for all sidesp-[20px]
pxpadding-left, padding-rightSets horizontal paddingpx-[10px]
pypadding-top, padding-bottomSets vertical paddingpy-[15px]
ptpadding-topSets top paddingpt-[10px]
prpadding-rightSets right paddingpr-[5px]
pbpadding-bottomSets bottom paddingpb-[20px]
plpadding-leftSets left paddingpl-[8px]
mmarginSets margin for all sidesm-[10px]
mxmargin-left, margin-rightSets horizontal marginmx-[auto]
mymargin-top, margin-bottomSets vertical marginmy-[20px]
mtmargin-topSets top marginmt-[5px]
mrmargin-rightSets right marginmr-[8px]
mbmargin-bottomSets bottom marginmb-[12px]
mlmargin-leftSets left marginml-[10px]

Background and Borders

Class NameMapped PropertyDescriptionExample Usage
bgbackgroundSets the backgroundbg-[url('image.png')]
bgColorbackground-colorSets the background colorbgColor-[red]
bgImagebackground-imageSets the background imagebgImage-[linear-gradient]
bgSizebackground-sizeSets the background sizebgSize-[cover]
bgPositionbackground-positionSets the background positionbgPosition-[center]
bgRepeatbackground-repeatSets the background repeat behaviorbgRepeat-[no-repeat]
roundedborder-radiusSets the border radiusrounded-[10px]
borderWidthborder-widthSets the border widthborderWidth-[2px]
borderColorborder-colorSets the border colorborderColor-[black]
borderStyleborder-styleSets the border styleborderStyle-[solid]

Typography

Class NameMapped PropertyDescriptionExample Usage
colorcolorSets text colorcolor-[blue]
fontfontApplies font shorthandfont-[italic bold 12px/30px Georgia]
fontSizefont-sizeSets font sizefontSize-[16px]
fontWeightfont-weightSets font weightfontWeight-[700]
fontStylefont-styleSets font stylefontStyle-[italic]
fontFamilyfont-familySets font familyfontFamily-[Arial]
lineHeightline-heightSets line heightlineHeight-[1.5]
letterSpacingletter-spacingSets letter spacingletterSpacing-[0.1em]
texttext-alignAligns texttext-[center]
textDecorationtext-decorationAdds text decorationtextDecoration-[underline]
textTransformtext-transformModifies text casingtextTransform-[uppercase]
whiteSpacewhite-spaceControls text wrappingwhiteSpace-[nowrap]
wordBreakword-breakControls word breakingwordBreak-[break-word]
overflowWrapoverflow-wrapControls text overflow wrappingoverflowWrap-[break-word]

Flexbox and Grid

Class NameMapped PropertyDescriptionExample Usage
flexflexSets flex shorthandflex-[1 1 auto]
growflex-growSets flex growgrow-[1]
shrinkflex-shrinkSets flex shrinkshrink-[0]
basisflex-basisSets flex basisbasis-[200px]
gapgapSets gap between flex/grid itemsgap-[10px]
justifyjustify-contentAligns items along the main axisjustify-[center]
itemsalign-itemsAligns items along the cross axisitems-[stretch]
contentalign-contentAligns multiple lines in a flex containercontent-[space-between]
selfalign-selfAligns an individual itemself-[end]

Properties Table

Class NameMapped PropertyDescriptionExample Usage
orderorderSets the order of flex/grid itemsorder-[1]
gridgridEnables grid layoutgrid-[auto / auto]
gridColsgrid-template-columnsDefines grid columnsgridCols-[1fr 2fr]
gridRowsgrid-template-rowsDefines grid rowsgridRows-[auto auto]
gridGapgrid-gapDefines gap between grid itemsgridGap-[10px]

Positioning

Class NameMapped PropertyDescriptionExample Usage
pospositionSets positioning modepos-[absolute]
zz-indexSets the stack orderz-[10]
toptopSets the top positiontop-[20px]
rightrightSets the right positionright-[15px]
bottombottomSets the bottom positionbottom-[10px]
leftleftSets the left positionleft-[25px]

Transitions and Animations

Class NameMapped PropertyDescriptionExample Usage
transitiontransitionShorthand for CSS transitionstransition-[all 0.3s ease-in-out]
transitionDurationtransition-durationSets transition durationtransitionDuration-[0.5s]
transitionTimingtransition-timing-functionSets transition timing functiontransitionTiming-[ease-in-out]
transitionDelaytransition-delaySets delay before transition startstransitionDelay-[0.2s]
animationanimationShorthand for animationsanimation-[fadeIn 2s ease-in-out infinite]
animationNameanimation-nameNames the animationanimationName-[fadeIn]
animationDurationanimation-durationSets animation durationanimationDuration-[2s]
animationTiminganimation-timing-functionSets animation timing functionanimationTiming-[ease-in]
animationDelayanimation-delaySets delay before animation startsanimationDelay-[0.5s]
animationIterationanimation-iteration-countSets animation repetition countanimationIteration-[infinite]
animationDirectionanimation-directionSets direction of animation playbackanimationDirection-[reverse]
animationFillModeanimation-fill-modeSets fill mode of animationanimationFillMode-[forwards]
animationPlayStateanimation-play-stateControls animation playback stateanimationPlayState-[paused]

Box Shadow and Opacity

Class NameMapped PropertyDescriptionExample Usage
shadowbox-shadowSets box shadowshadow-[0 4px 8px rgba(0,0,0,0.2)]
opacityopacitySets element opacityopacity-[0.8]

Cursor and Pointer Events

Class NameMapped PropertyDescriptionExample Usage
cursorcursorDefines mouse cursor stylecursor-[pointer]
pointerEventspointer-eventsSets pointer interaction behaviorpointerEvents-[none]

Other CSS Properties

Class NameMapped PropertyDescriptionExample Usage
clipPathclip-pathClips an element to a specific shapeclipPath-[circle(50% at 50% 50%)]
filterfilterApplies visual effects like blur or brightnessfilter-[blur(5px)]
transformtransformApplies transformation (e.g., rotate, scale)transform-[rotate(45deg)]
transformOrigintransform-originSets transform origintransformOrigin-[center]
visibilityvisibilityToggles visibility of elementvisibility-[hidden]
overflowoverflowSets overflow behavioroverflow-[auto]
overflowXoverflow-xControls horizontal overflowoverflowX-[scroll]
overflowYoverflow-yControls vertical overflowoverflowY-[hidden]

Advanced Properties

Class NameMapped PropertyDescriptionExample Usage
backdropFilterbackdrop-filterApplies backdrop visual effectsbackdropFilter-[blur(10px)]
mixBlendModemix-blend-modeSpecifies blending mode for overlapping layersmixBlendMode-[multiply]
isolationisolationSets stacking context isolationisolation-[auto]
perspectiveperspectiveDefines 3D perspectiveperspective-[1000px]
perspectiveOriginperspective-originSets origin for perspectiveperspectiveOrigin-[center]
scrollBehaviorscroll-behaviorSets scrolling behaviorscrollBehavior-[smooth]
resizeresizeControls element resizing behaviorresize-[both]
userSelectuser-selectControls text selection behavioruserSelect-[none]

Custom Mappings for Shorthand

Class NameMapped PropertyDescriptionExample Usage
transitionAlltransition: allApplies transition to all propertiestransitionAll-[0.3s ease]
animationAllanimation: allApplies animation to all propertiesanimationAll-[2s ease-in-out]
roundedFullborder-radius: 50%;Creates a fully rounded elementroundedFull

Example of using Custom Utility Classes

<Button customeclasses="px-[12px] py-[6px] bg-[green] text-[white]">
Custom Styled Button
</Button>