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
31–40 of 48 posts
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#32Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#33My go to classless CSS is MVP.css
Note: the link below is built entirely with MVP.css (including multiple columns, which is something most classless frameworks lack)
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#34Firstly, 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?
It's mainly the latter. I did consider just using a class, but ultimately settled on this solution. This approach might facilitate usage with additional CSS compilers/tooling.
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#35Is it possible to apply a set of tailwind styles to base tags?
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#36Earlier quoted context omitted.
It's mainly the latter. I did consider just using a class, but ultimately settled on this solution. This approach might facilitate usage with additional CSS compilers/tooling.
I admit I become hesitant when I see "data-*" attributes as it makes me think Javascript might be necessary to use it
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#37MVP.css My go to classless CSS is MVP.css Note: the link below is built entirely with MVP.css (including multiple columns, which is something most classless frameworks lack) https://andybrewer.github.io/mvp/
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#38Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#39I've added Lissom to the big list of minimal CSS frameworks [0] which aims to collect all of these types of projects (more or less) in one place for ease of discoverability and comparison. You can preview the CSS on some HTML5 boilerplate here [1].
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#40MVP.css My go to classless CSS is MVP.css Note: the link below is built entirely with MVP.css (including multiple columns, which is something most classless frameworks lack) https://andybrewer.github.io/mvp/
MVP.css is very complete and robust, but its styles and general feel do not resonate with me.
Example sites using MVP.css include