This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a node script that creates a css utilities file for various spacing. The increments and units below can be adjusted to suit your needs | |
// To run, navigate to the file in your console and run the command `node spacing.gen.js` | |
// Note: The file will write to the direction you're in when you run `node ...` so don't target it with a path, rather `cd` directly to the `_styles` folder where you want the .css file to appear | |
const fs = require('fs'); | |
var data = ''; | |
var increments = [ | |
'0', '4', '8', '16', '24', '32', '40', '48', '56', '64', '72' |