vikramrojo / fortune

🔮Fortune is your friendly CSS properties framework.
MIT License
16 stars 2 forks source link

Refactoring spacing variables #8

Closed vikramrojo closed 6 years ago

vikramrojo commented 6 years ago

Currently the spacing system is not particularly memorable or spannable from small to extra large, eg. https://github.com/atav1k/fortune/blob/531da3c285ba4cdfb762fa44893f94af234b2728/src/variables.css#L3-L15

What are alternatives to solving spacing in a human readable way?

vikramrojo commented 6 years ago

Possibly use gap-n be use for 0, 1, 2, 4, 8, 12 & space-n for 0, 8, 16, 24, 32, 48, 64, 80, 96, 128. Also realized that an array must be used rather than actual px value because when root font changes, so will the spacing.