feat: add spacing util classes
This commit is contained in:
parent
d4ffca4b5b
commit
4333a7bde9
5 changed files with 100 additions and 20 deletions
15
src/_data/spacing.js
Normal file
15
src/_data/spacing.js
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue