Firstly, let me say that this looks great. I really like the classless approach. One minor question/nitpick: > To make a button primary, add the data-primary attribute to it. For things like this, I feel like a class would be ok while still calling the library "classless". Is there some advantage to using a data-* attribute here or is it just to retain "purity" of the classless tagline?
Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
21–30 of 48 posts
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#22I’m curious, what is the benefit from going “classless”? In my CSS usage, classes have been very useful. Why would you not want to use classes?
I think it's not about going completely classless, but about having sane defaults and only use classes for specific components and/or elements that really need a custom style. The more traditional CSS libraries provide ton of classes, and your html is filled with classes for the basic styling.
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#23Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#24Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#25Marx, The classless CSS reset (perfect for Communists).
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#26Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#27Looks great! Working on something similar, but couldn't go through the nuances of managing every gnarly inputs. What do you think of a PR for stacking any children as equal width columns.
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#28Here’s a similar project I made when I was a teenager: Marx, The classless CSS reset (perfect for Communists). https://github.com/mblode/marx
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#29I've just added basic form styles. More to come soon...
Some kind of containers that can use 1/2 1/4 of width and look good on mobile would probably be nice.
I would also add nav with mobile switch, I saw one fully in css.
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#30Looks great! Working on something similar, but couldn't go through the nuances of managing every gnarly inputs. What do you think of a PR for stacking any children as equal width columns.
Like `display: flex; flex-direction: column; width: 100%;`?