List of supported style properties

This section provides a list of the currently supported style properties in vizia. This excludes layout properties which are detailed in the layout section of this guide.

For the corresponding modifier name, replace any hyphens with underscores. For example, background-color in CSS becomes the background_color() modifier in Rust.

PropertyTypeInitial ValueInheritedAnimatable
backdrop-filterFilternoneNoYes
background-colorColortransparentNoYes
background-imageBackgroundImagenoneNoNo
background-sizeBackgroundSizeauto autoNoYes
blend-modeBlendModenormalNoNo
bordershorthand
border-colorColortransparentNoYes
border-styleBorderStylesolidNoNo
border-widthLengthOrPercentage0NoYes
caret-colorColortransparentYesYes
clip-pathClipPathnoneNoYes
colorColortransparentYesYes
corner-radiusCornerRadius0NoYes
corner-top-left-radiusLengthOrPercentage0NoYes
corner-top-right-radiusLengthOrPercentage0NoYes
corner-bottom-left-radiusLengthOrPercentage0NoYes
corner-bottom-right-radiusLengthOrPercentage0NoYes
corner-shapeRect<CornerShape>roundNoNo
corner-top-left-shapeCornerShaperoundNoNo
corner-top-right-shapeCornerShaperoundNoNo
corner-bottom-left-shapeCornerShaperoundNoNo
corner-bottom-right-shapeCornerShaperoundNoNo
cursorCursorIcondefaultNoNo
displayDisplayflexNoYes
font-familyFontFamilyYesNo
font-sizeFontSize16YesYes
font-slantFontSlantnormalYesNo
font-weightFontWidthregularYesYes
font-widthFontWeightnormalYesYes
font-variation-settingsFontVariationnoneYes
line-clampu321NoNo
opacityf321.0NoYes
outlineshorthandNo
outline-colorColortransparentNoYes
outline-offsetLengthOrPercentage0NoYes
outline-widthLengthOrPercentage0NoYes
overflowOverflowvisibleNoNo
overflow-xOverflowvisibleNoNo
overflow-yOverflowvisibleNoNo
pointer-eventsPointerEventsautoNoNo
rotateAngle0NoYes
scaleScale1NoYes
selection-colorColortransparentYesYes
shadowShadowNoYes
text-alignTextAlignleftNoNo
text-decorationshorthand
text-decoration-lineYesNo
text-overflowclipNoNo
text-wrapbooltrueNoNo
transformTransformNoYes
transform-originPositionNoYes
transition
translateTranslateNoYes
visibilityVisibilityNoNo
z-indexi320NoNo