Really nice in general though!
Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
41–48 of 48 posts
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#42Nice work! I like that you have included support for prefers-color-scheme, which is one of the more highly-requested features for these kinds of frameworks. I'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]. [0]: https://g…
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#43Does “themable” just mean that it uses CSS variables to make it easy to change colors?
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#44One issue: on my iPhone, the heading symbols are partially off screen. Really nice in general though!
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#45Firstly, 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?
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#46Firstly, 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?
I like the distinction. It separates effects applied by the library from affects applied by your custom class, since you can still add a class if you like. At a glance, I know where the effects are coming from.
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#47Earlier quoted context omitted.
Like `display: flex; flex-direction: column; width: 100%;`?
section { display: flex; flex-wrap: wrap; } section > * { flex: 0 0 auto; } section > *:not(:last-child) { margin-right: 1rem;}
Also, why not use "gap" instead of "margin-right-but-not-last-child"?
Re: Show HN: Lissom.CSS - A classless, minimalist, and themeable CSS library
#48I’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?