Norbi
CssStyle
object MyStyleSheet : StyleSheet() { val myComponent by style { (type("div") + self) style { display(...) } (type("div") + self) child type("div") style { display(...) } } }
div.MyStyleSheet-myComponent { display: ...; } div.MyStyleSheet-myComponent > div { display: ...; }
David Herman
val MyExampleStyle = CssStyle { base { ... } cssRule(" > div") { ... } }
@InitSilk fun initSilk(ctx: InitSilkContext) { ctx.stylesheet.registerStyle("div.my-example") { ... }
A modern programming language that makes developers happier.