You need to create the appropriate CSS rule `val r...
# tornadofx
r
You need to create the appropriate CSS rule
val rectangle by csselement("Rectangle")
which you can then use like any other rule
rectangle { fill = someColorHere }
.