-
-
Save patrickbjohnson/2ba62210bd3142f5c2a9609f33d086ec to your computer and use it in GitHub Desktop.
Tailwind Custom Spacing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const spacingIncrement = 5 | |
export const spacing = [...Array(100).keys()].reduce( | |
(a, v, idx) => ({...a, [idx * spacingIncrement]: `${idx * spacingIncrement}px`}), | |
{}, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment