Spacing
Usage
import { generateSpacing } from 'style-genie'
const spacing = generateSpacing()
spacing()
// '8px'
spacing(-1)
// '-8px'
spacing(0)
// '0px'Parameters
Default options
Custom defaults
Spacing function
Calculate the default value and returns it as a number.
Calculates the value based on the spacing and returns it as a number.
Calculates the value based on the spacing and returns it as a string.
Calculates the value based on vertical and horizontal and returns it as a string.
Calculates the value based on top, horizontal and bottom and returns it as a string.
Calculates the value based on top, right, bottom and left and returns it as a string.
Last updated