Repository navigation
Replies: 3 comments
|
I think there is nothing stopping you from adding your own grid module to scss and using it whenever needed. In my case this is not often needed, so I prefer minimal code in Pico scss source files. Speed above all... |
|
Why use utility classes at all? Seems a bit too tailwindy to me. Creating a bunch of utility classes to try and abstract CSS grid away seems to me harder and more cumbersome than just using the actual CSS grid. |
|
This request has appeared a few times, so I think it identifies a documentation need, but I would avoid adding a numeric span utility API to Pico.
A documented 2:1 layout recipe, or a local custom property consumed by an application’s grid, would preserve Pico’s small grid abstraction without starting a second utility framework. |
Uh oh!
There was an error while loading. Please reload this page.
I understand that PicoCSS takes a very minimal approach, which is why the grid system is also similarly simple. I still want to suggest utility classes for the span of a grid column because with this the grid becomes a lot more powerful and useful.
I'm making the numbers up as I type but I want to imagine that 50% of people that want to use a grid are too limited with Pico's current offering. The one feature that people will miss the most is defining a column to be wider than one element. Having this option would allow so much more flexibility and yet the implementation is straight forward. I think this easily covers the need of 90% of people without needing custom CSS or the Bootstrap grid on top.
I think the final solution would be something like this:
So this...
...would work. In my mind
span-2,span-3andspan-4is more than enough.What do you think?
All reactions