Get the CSS variable for a duotone preset.
Description
Example output: var(–wp–preset–duotone–blue-orange)
Parameters
$slugstringrequired- The slug of the duotone preset.
Source
private static function get_css_var( $slug ) {
$name = self::get_css_custom_property_name( $slug );
return "var($name)";
}
Changelog
| Version | Description |
|---|---|
| 6.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.