News for hackers. Stuff that matters.
Re:Show HN: A CSS Grid generator for building layouts faster by rofko on Wednesday May 02, 2018 @05:33PM (#16981338)
The code produces a standard way of defining grid-areas with line numbers, there is nothing poor or long winded about that. You can build grids in many ways.

Using a data-attribute is useful when you have overlapping areas, as one cell can't have two names at the same time. It is also essential for naming grid areas support in IE10+.

That being said, we will definitely add naming areas with grid-template-areas in a future version, alongside naming grid lines, which is also very useful for these layouts.

Re:Show HN: A CSS Grid generator for building layouts faster by nkron on Wednesday May 02, 2018 @09:05PM (#16982537)
Using 'data-area' requires modifying the html so it is not a css only approach. This is a fairly big turn off for me.
Re:Show HN: A CSS Grid generator for building layouts faster by rofko on Wednesday May 02, 2018 @09:37PM (#16982681)
You can use any selector to apply the grid, that data-area can be replaced with a class you already have.