CssResolvableInterface

Interface

Interface for CSS color expressions that can be resolved at runtime.

Methods

public function resolve(CssContext $ctx): ColorInterface|CssResolvableInterface

Resolve the expression into a concrete color using the provided context.

Returns a ColorInterface instance if fully resolved, or a new
CssResolvableInterface if only partially resolved.

Parameters
NameTypeDefault
$ctx CssContext -
public function toCss(): string

Convert the expression back to a CSS string representation.