Package-level declarations

Functions

Link copied to clipboard
fun StyleScope.applyFontSize(textUnit: TextUnit)
Link copied to clipboard
fun StyleScope.applyLetterSpacing(textUnit: TextUnit)
Link copied to clipboard
fun StyleScope.applyLineHeight(textUnit: TextUnit)
Link copied to clipboard
fun TextUnit.toCssValue(): CSSNumericValue<*>
Link copied to clipboard
fun Float.toPercent(): CSSSizeValue<CSSUnit.percent>
Link copied to clipboard
fun Dp.toPx(): CSSpxValue

A Dp value is mapped to a CSSpxValue directly for now. A CSSpxValue can be considered density-dependent because a web page can be zoomed. If you think this behavior is inappropriate, please file an issue with your reasons.