diff --git a/functions.js b/functions.js index 92d9d46..a33b182 100644 --- a/functions.js +++ b/functions.js @@ -7,6 +7,9 @@ const postcssFunctions = { const lightness = `var(${name}__l)`; return `hsla(${hue}, ${saturation}, ${lightness}, ${alpha})`; }, + spacers(number = 1) { + return `calc(var(--spacer-height, 1.5rem) * ${number})`; + }, }; module.exports = postcssFunctions;