Deft only supports a subset of CSS properties and property values. The following is the list of supported properties and value types.
| Property | Property Type |
|---|
| color | <color> |
| font-size | <length> |
| font-family | <string> |
| font-weight | thin | extra-light | light | normal | medium | semi-bold | bold | extra-bold | black | extra-black | <number> |
| font-style | normal | italic |
| line-height | <length> | <percent> | <number> |
Background
| Property | Property Type |
|---|
| background-color | <color> |
Border
Layout
| Property | Property Type |
|---|
| display | none| flex |
| position | static | relative | absolute |
| flex | number |
| flex-basis | <length> | <percent> |
| flex-grow | number |
| flex-shrink | number |
| align-self | auto | flex-start | center | flex-end | stretch | baseline | space-between | space-around | space-evenly |
| direction | ltr | rtl |
| justify-content | flex-start | center | flex-end | space-between | space-around | space-evenly |
| flex-direction | column | row | column-reverse | row-reverse |
| align-content | auto | flex-start | center | flex-end | stretch | baseline | space-between | space-around | space-evenly |
| align-items | auto | flex-start | center | flex-end | stretch | baseline | space-between | space-around | space-evenly |
| flex-wrap | no-wrap | wrap | wrap-reverse |
| column-gap | <length> |
| row-gap | <length> |
| top | <length> | <percent> |
| right | <length> | <percent> |
| bottom | <length> | <percent> |
| left | <length> | <percent> |
Size
Margin & Padding
Animation
| Property | Property Type |
|---|
| animation-name | <string> |
| animation-duration | number |
| animation-iteration-count | number |