Agree with everything lining up. All good products/sites should follow a spacing system. This article does a great job if you want a good starting point - https://medium.com/eightshapes-llc/space-in-design-systems-1...
Once developers know this system exists, coding front ends becomes a lot easier.