Pick a grid base, a linear or a ratio scale and the steps, and get each spacing step in px and rem, with a visual ruler and CSS to copy. Free.