Namespace: Spacing:spacing-value

Spacing:spacing-value

Source:

Methods

spacing-value($size, $breakpointopt) → {Number|null}

Return a spacing value defined in the jig config, based on a breakpoint.

Parameters:
Name Type Attributes Default Description
$size String

on of the named sized defined in jig's spacing config (e.g. sm, l, xxl, ...)

$breakpoint Literal | String <optional>
'auto'

either "auto" (to use the current breakpoint) or one of the defined named breakpoints

Source:
Throws:

error if size is unknown

Returns:
the spacing value or null if nothing was found
Type
Number | null
Example
spacing-value(sm)
  => 12px
spacing-value(md, large)
  => 5rem