setProperty

fun setProperty(property: String, value: String?, priority: String = definedExternally)(source)

The CSSStyleDeclaration.setProperty() method interface sets a new value for a property on a CSS style declaration object.

MDN Reference