DEV Community

Discussion on: A CLI tool for creating CSS Grid layouts

Collapse
 
craigmc08 profile image
Craig McIlwrath

This is cool! Trying to remember all of the grid properties is usually pretty annoying, so I can imagine this being very helpful. I think it would be good to not generate as opinionated styles (no background colors, padding, grid-gap, border, ...). Most of the time I think I would remove those styles. Maybe as a boolean flag?

Collapse
 
saunved profile image
Saunved

Hi Craig,
Based on your suggestions and a few other suggestions from the comments and on Github, I've created the next version of get-grid. It's explained in the 2nd article of the series that you can check out here.
Thanks for the suggestion :)

Collapse
 
saunved profile image
Saunved

Yeah, memorizing the properties and having to look them up each time was actually a key reason behind creating this tool.

I have defined some flags for padding and margin but I haven't implemented them yet.

In the next update I can remove the default padding and margin and maybe only put it in if a "default" flag is set. And there could be a separate "highlight" flag for adding borders and margins on the areas (for presentation purposes).

Thanks a lot for the suggestion! Looking forward to implementing it :)

Collapse
 
pantsme profile image
Antonio Savage

Or you could support a .config file for certain things. padding = true type stuff too

Thread Thread
 
saunved profile image
Saunved

That's an interesting approach too. Will definitely think about it!