Skip to content

Properties

Deft only supports a subset of CSS properties and property values. The following is the list of supported properties and value types.

PropertyProperty Type
color<color>
font-size<length>
font-family<string>
font-weightthin | extra-light | light | normal | medium | semi-bold | bold | extra-bold | black | extra-black | <number>
font-stylenormal | italic
line-height<length> | <percent> | <number>

Background

PropertyProperty Type
background-color<color>

Border

PropertyProperty Type
border-top-width<length> | <percent>
border-right-width<length> | <percent>
border-bottom-width<length> | <percent>
border-left-width<length> | <percent>
border-top-color<color>
border-right-color<color>
border-bottom-color<color>
border-left-color<color>
border-top-left-radius<length>
border-top-right-radius<length>
border-bottom-right-radius<length>
border-bottom-left-radius<length>
border-top<length> <color>
border-right<length> <color>
border-bottom<length> <color>
border-left<length> <color>
border<length> <color>

Layout

PropertyProperty Type
displaynone| flex
positionstatic | relative | absolute
flexnumber
flex-basis<length> | <percent>
flex-grownumber
flex-shrinknumber
align-selfauto | flex-start | center | flex-end | stretch | baseline | space-between | space-around | space-evenly
directionltr | rtl
justify-contentflex-start | center | flex-end | space-between | space-around | space-evenly
flex-directioncolumn | row | column-reverse | row-reverse
align-contentauto | flex-start | center | flex-end | stretch | baseline | space-between | space-around | space-evenly
align-itemsauto | flex-start | center | flex-end | stretch | baseline | space-between | space-around | space-evenly
flex-wrapno-wrap | wrap | wrap-reverse
column-gap<length>
row-gap<length>
top<length> | <percent>
right<length> | <percent>
bottom<length> | <percent>
left<length> | <percent>

Size

PropertyProperty Type
width<length> | <percent>
height<length> | <percent>
max-width<length> | <percent>
max-height<length> | <percent>
min-width<length> | <percent>
min-height<length> | <percent>

Margin & Padding

PropertyProperty Type
margin-top<length> | <percent>
margin-right<length> | <percent>
margin-bottom<length> | <percent>
margin-left<length> | <percent>
margin<length> | <percent>
padding-top<length> | <percent>
padding-right<length> | <percent>
padding-bottom<length> | <percent>
padding-left<length> | <percent>
padding<length> | <percent>

Transform

PropertyProperty Type
transform<transform>

Animation

PropertyProperty Type
animation-name<string>
animation-durationnumber
animation-iteration-countnumber