feat: add spacing util classes

This commit is contained in:
Devin Haska 2024-02-06 15:59:19 -08:00
parent d4ffca4b5b
commit 4333a7bde9
5 changed files with 100 additions and 20 deletions

15
src/_data/spacing.js Normal file
View file

@ -0,0 +1,15 @@
const BASE_SPACING = 16;
const spacing = {
0: 0,
0.25: BASE_SPACING / 4,
0.5: BASE_SPACING / 2,
1: BASE_SPACING,
1.5: BASE_SPACING * 1.5,
2: BASE_SPACING * 2,
3: BASE_SPACING * 3,
4: BASE_SPACING * 4,
5: BASE_SPACING * 5,
};
module.exports = spacing;