Replies: 2 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... |
Beta Was this translation helpful? Give feedback.
0 replies
-
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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-3
andspan-4
is more than enough.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions