Martin Janči
03/28/2025, 3:00 PMval Container = styled(div) {
css {
display = Display.flex
flexDirection = FlexDirection.column
height = 100.vh
width = 100.pct
}
}
This doesnt work for me and also AI has problem. This works:
div {
css {
fontFace {
this.fontFamily = "OpenSans"
this.src = "url(./fonts/opensans.ttf)"
}
}
// Example heading
+"Chat and Preview"
}
Any idea, what is wrong? I didnt find doc for styledturansky
03/28/2025, 3:02 PMval Container = styled(div) {
display = Display.flex
flexDirection = FlexDirection.column
height = 100.vh
width = 100.pct
}
Emotion (recommended):
val Container = div.styled {
display = Display.flex
flexDirection = FlexDirection.column
height = 100.vh
width = 100.pct
}
Martin Janči
03/28/2025, 3:04 PM