function DesignTokenInterface::toCss

Exports the given tokens into CSS variables.

Parameters

\Drupal\Core\Theme\Entity\DesignTokenInterface[] $tokens: The token entities.

Return value

string The inline CSS.

File

core/lib/Drupal/Core/Theme/Entity/DesignTokenInterface.php, line 51

Class

DesignTokenInterface
Interface for design token config entity.

Namespace

Drupal\Core\Theme\Entity

Code

public static function toCss(array $tokens) : string;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.