The WordPress way: do everything in theme.json. For example: [WordPress theme json units and spacing scale](https://www.youtube.com/watch?v=cqaRzk-INaU)