Skip to content

CSS Properties Alias

VBox provides convenient aliases for common CSS properties to simplify styling. You can also provide your own custom aliases

vue
<template>
  <v-box w="250px" bg="tomato" p="1rem" color="#fff" text-align="center">
    This is the box
  </v-box>
</template>
This is the box

Default Aliases

Below is a table of the default CSS property aliases provided by VBox:

AliasCSS Property
wwidth
maxWmaxWidth
minWminWidth
hheight
maxHmaxHeight
minHminHeight
fsfontSize
fwfontWeight
fffontFamily
lhlineHeight
lsletterSpacing
mmargin
mtmarginBlockStart
mbmarginBlockEnd
mlmarginInlineStart
mrmarginInlineEnd
mxmarginInline
mymarginBlock
ppadding
ptpaddingBlockStart
pbpaddingBlockEnd
plpaddingInlineStart
prpaddingInlineEnd
pxpaddingInline
pypaddingBlock
bgbackground
bgColorbackgroundColor
bgSizebackgroundSize
bgPositionbackgroundPosition
bgImagebackgroundImage
bgClipbackgroundClip
bgRepeatbackgroundRepeat
bgAttachmentbackgroundAttachment
bgOriginbackgroundOrigin
radiusborderRadius
shadowboxShadow

You can also provide your own custom aliases.