unsafeCSS

external fun unsafeCSS(cssText: String): CssResult

Wraps a plain CSS string in a Lit CSSResult so it can be passed to registerStyles or assigned to adoptedStyleSheets.

Prefer a real css tagged template in JavaScript when possible; Kotlin cannot express tagged template literals, so this is the supported entry point for CSS defined in Kotlin.