registerProperty

external fun registerProperty(definition: PropertyDefinition)(source)

The CSS.registerProperty() static method registers custom properties, allowing for property type checking, default values, and properties that do or do not inherit their value.

MDN Reference