from ()
Creates a map from the provided key/value pairs.
Parameters
$key-value
- The key/value pairs from which a map will be created.
- Type
ArgList<*>
Return Value
Map
- A map with the given keys and values.
Example
@use '@sass-fairy/map';
@debug map.from(padding-top 1rem, padding-bottom 2rem);
// (padding-top: 1rem, padding-bottom: 2rem)
@debug map.from([padding-top 1rem, padding-bottom 2rem]...);
// (padding-top: 1rem, padding-bottom: 2rem)