Skip to content

Instantly share code, notes, and snippets.

View jeremypbeasley's full-sized avatar

Jeremy P. Beasley jeremypbeasley

View GitHub Profile
@jeremypbeasley
jeremypbeasley / spacing.gen.js
Created November 9, 2017 03:34
Frontend Spacing CSS Generator
// 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'