Sass mixin-exists() Function

Last Updated:

Sass mixin-exists() Function

The mixin-exists() function returns whether a mixin named $name exists.

Example

SASS TO CSS CONVERTER
//Check your console @debug mixin-exists("myColor"); // false @mixin myColor { color: red; } @debug mixin-exists("myColor"); // true

Syntax

mixin-exists($name)

Parameter Value

ValueTypeExplanation
$name Required Specifies the name of the mixin

Return Value

ValueExplanation
bool Returns whether a mixin named $name exists.

Share this Page

Meet the Author