Sass keywords() Function

Last Updated:

Sass keywords() Function

The keywords() function returns the keywords passed to a mixin or function that takes arbitrary arguments.

Example

SASS TO CSS CONVERTER
@mixin syntax-colors($args...) { @each $name, $color in keywords($args) { pre span.stx-#{$name} { color: $color; } } } @include syntax-colors( $string: green, $comment: yellow, $variable: blue, )

Syntax

keywords($args)

Parameter Value

ValueTypeExplanation
$args Required Specifies an argument list.

Return Value

ValueExplanation
value Returns the keywords passed to a mixin or function that takes arbitrary arguments.

Share this Page

Meet the Author