Abstract Protected constructorConstructs structured CSS property value.
Readonly Abstract hslThis color in HSL coordinates.
Readonly priorityCSS property value priority.
The value Important and above means the property is !important. Everything else means normal
priority.
The property value with higher priority number takes precedence over the one with lower one.
Readonly Abstract rgbThis color in RGB coordinates.
Readonly Abstract typeColor value type corresponding to color coordinates. Either rgb or hsl
Abstract byMaps the given CSS property value to the value of this one's type. Defaults to this value if mapping is not possible.
This method allows to use an structured value instance as CSS property mapping.
A raw property value that should be converted.
Mapped property value.
Creates !important variant of this value.
Either a new value equal to this one but having priority equal to Important,
or this one if already the case.
Abstract isChecks whether this value equals to CSS property value.
CSS property value to compare with.
Abstract prioritizeAbstract setConstructs another color value with updated coordinates.
Either partial color coordinates to apply or a function returning them and accepting this color instance as its only argument. Missing values are taken from this color.
Updated color value.
Abstract toCreates usual (not !important) variant of this value.
Either a new value equal to this one but having priority equal to Usual,
or this one if already the case.
Generated using TypeDoc
Structured color CSS property value base.