Document Stack
Document Stack
Docs

Style Properties Reference

Complete reference of all styling properties available for document elements.

Typography

PropertyValuesDefault
fontFamilyAny supported font nameInter
fontSize1–200 (pixels)14
fontWeight100, 200, 300, 400 (normal), 500, 600, 700 (bold), 800, 900400
fontStylenormal, italicnormal
textAlignleft, center, right, justifyleft
lineHeight0.5–3.0 (multiplier)1.5
letterSpacing-5 to 20 (pixels)0
textDecorationnone, underline, line-throughnone
textTransformnone, uppercase, lowercase, capitalizenone

Colors

PropertyFormatExample
colorHex, RGB, RGBA, named#333333, rgb(51,51,51)
backgroundColorHex, RGB, RGBA, named, transparent#ffffff, transparent

Color Formats

All color properties accept hex (#RRGGBB or #RRGGBBAA), RGB/RGBA (rgb(r,g,b) / rgba(r,g,b,a)), and CSS named colors (red, blue, etc.).

Borders

PropertyValuesDefault
borderWidth0–20 (pixels)0
borderColorAny color value#000000
borderStylesolid, dashed, dotted, nonesolid
borderRadius0–100 (pixels)0
borderTopShorthand (width style color)
borderBottomShorthand (width style color)
borderLeftShorthand (width style color)
borderRightShorthand (width style color)

Shadows

PropertyValuesDefault
shadowColorAny color valuergba(0,0,0,0.1)
shadowOffsetX-50 to 50 (pixels)0
shadowOffsetY-50 to 50 (pixels)2
shadowBlur0–50 (pixels)4

Positioning

PropertyValuesDescription
xnumber (pixels)Horizontal position from left edge
ynumber (pixels)Vertical position from top edge
widthnumber (pixels)Element width
heightnumber (pixels)Element height
rotation0–360 (degrees)Clockwise rotation
zIndexnumberStacking order (higher = in front)

Opacity

PropertyValuesDescription
opacity0–10 = fully transparent, 1 = fully opaque

Padding

PropertyValuesDefault
paddingTop0–100 (pixels)0
paddingBottom0–100 (pixels)0
paddingLeft0–100 (pixels)0
paddingRight0–100 (pixels)0

Image-Specific Styles

PropertyValuesDescription
objectFitcover, contain, fill, noneHow the image fits within its container
objectPositionCSS position valueAlignment within container

Next Steps