class MyStyles : Stylesheet() { companion object { val myClass by cssclass() val rtfxBackgroundColor by cssproperty("-rtfx-background-color") } init { myClass { rtfxBackgroundColor.value = c("#00ff00") } } }