Following on from the idea of [[20210519122422-first-class-space]], it can make sense to create [[designtokens]] to better represent your space. This can lead to better visual consistency and help simplify decisions for developers and designers.
Grid != space. Grid is just something that uses space.
When creating tokens, there's a few aspects. Namely the values, and what you apply the values to.
For the values, these should follow a consistent, non-linear pattern. The values should be fairly recallable, but don't need to be a linear progression which is often too comprehensive. A good set is something like: 2, 4, 8, 16, 24, 32, 48, 64, 96, etc. This isn't a silver bullet, but note that the spaces scale in size, and than some values are intentionally omitted.
Properties are a bit more complex. Nathan Curtis proposes the following:
Using this mix of properties and values, you can apply a subset of your main spacing tokens to each property. For example:
https://medium.com/eightshapes-llc/space-in-design-systems-188bcbae0d62