Skip to content

Instantly share code, notes, and snippets.

@patrickbjohnson
Created August 29, 2023 13:46
Show Gist options
  • Save patrickbjohnson/2ba62210bd3142f5c2a9609f33d086ec to your computer and use it in GitHub Desktop.
Save patrickbjohnson/2ba62210bd3142f5c2a9609f33d086ec to your computer and use it in GitHub Desktop.
Tailwind Custom Spacing
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