RelativeColor

Represents a CSS Relative Color Syntax expression.

This allows defining a new color by manipulating the channels of an origin color,
which can itself be a resolvable expression (e.g. using CSS variables).

Methods

public function resolve(CssContext $ctx): ColorInterface|CssResolvableInterface
Parameters
NameTypeDefault
$ctx CssContext -
public function toCss(): string