Keys API
key-bind()
mixin
Binds a new value to an existing key. Must be used within a valid CSS selector.
Syntax
Usage
key-create()
function
Creates a key with a fallback value for a CSS property. Must be used as a property value, css-function value, or
key-fallback value.
Syntax
Usage
key-check()
function
Checks if a token is a valid key or not. Must be used within a valid SCSS conditional statement.
NOTE: It does not throw and error when the value is asserted as false, you need to make the error yourself.
Syntax
Usage
key-get()
function
Queries and retrieves a key in its CSS custom property form. Must be used as a property value, css-function value, or
key-fallback value.
Syntax
Usage
key-get-raw()
function
Queries and retrieves a key in its raw value form. Must be used as a property value, css-function value, or key-fallback
value.
Syntax
Usage