registerStyleBase
Convenience method when you only care about registering the base method, which can help avoid a few extra lines.
So this:
ctx.stylesheet.registerStyleBase("*") {
Modifier.fontSize(48.px)
}Content copied to clipboard
replaces this:
ctx.stylesheet.registerStyle("*") {
base {
Modifier.fontSize(48.px)
}
}Content copied to clipboard