Live data from Hacker News

Spectre.css – A Lightweight, Responsive and Modern CSS Framework

github.com

91–100 of 135 posts

Re: Spectre.css – A Lightweight, Responsive and Modern CSS Framework

#91
post #67

Earlier quoted context omitted.

I agree that you could in a lot of cases get along without these classes. But sometimes you want e.g. an anchor acting as a button in a web application. Or you want a button element with browser styles. You could argue that this is also already an anti-pattern but it does way less harm then leaking inline styles into the namespace and it is still semantic. Also this was just an example (maybe not the best one) to ill…

is selectable with [disabled] { } or [disabled="disabled"] { } And [disabled]:not(.greyButtonStyle) { } does the last example if you classed that style, doesn't it? I've only done a little CSS, not very recent ... unless you're recruiting, then I'm an expert ;o). I imagine though there are times when you want to class (some) button tags as .button.

[deleted]

Re: Spectre.css – A Lightweight, Responsive and Modern CSS Framework

#92
post #16
post #7

I've been using this for years. Did something significant happen with it?

New release, but I just felt HNers needed to know about it.

Thanks a lot! I've been looking at a lot of different CSS frameworks lately. So far I'm considering Semantic UI, Bulma, Tachyons, Tailwind, and a few others. I initially skipped over Spectre because I thought it was a just a lightweight grid framework, and didn't realize it had so many components in less than 10kb. That's really amazing, and I also love the super clean design. You also get a little bit of Tailwind with the functional classes.

The only thing I don't like is how it uses native browser select dropdowns. They're really ugly, so it would be nice if there was a proper select component (although I can just add my own CSS or use Select2.)

Anyway, this looks really awesome. Especially for a landing page that needs to load really fast.

Re: Spectre.css – A Lightweight, Responsive and Modern CSS Framework

#94

What I enjoy about Spectre.css is that there is no javascript and the CSS is readable. It's easy to drop their CSS into a react component and extend it because it's so readable.

You don't need javascript to run Bootstrap too.

Re: Spectre.css – A Lightweight, Responsive and Modern CSS Framework

#95
post #66

Earlier quoted context omitted.

I think you're probably still thinking about CSS as it was 5 years ago. When you had to do weird hacks to get things the way you wanted them. Modern CSS is much easier. In fact, if you are sticking .row and .column everywhere you are doing considerably more work than just to define a grid layout using display: grid once in your CSS, and then just use semantic HTML thereafter.

While the grid and flexbox have made things better, the display:grid is still not supported in IE 11 very well. The grid css model was implemented in IE very early but as the specification got updated, IE remained with a different(older and incompatible) implementation of display:grid. Of course, we can still make display:grid work in IE11 by some additional work. But this is an additional overhead. Flexbox has very…

One possible solution with a bit of little work is to write layouts with grid. And then, as a fallback, query a no supported grid feature for IE 11 and write that layout in flexbox.

The layout in grid can be responsive. But the layout in flexbox for IE 11 only will be mobile, if it's mobile it will work in any display.

Re: Spectre.css – A Lightweight, Responsive and Modern CSS Framework

#96
post #23

The more web development I’ve done the more I’ve swung back to just writing CSS myself rather than depending on CSS frameworks; I’ve ended up seeing these less as ways to accelerate development for a team that is skilled at frontend, but instead as a way for people who don’t like styling or have little experience in frontend development/low design sense to style things reasonably. But I keep seeing frontend framework…

I've been writing my own CSS too, but the problem is that my site looks really awful. I'm not a good designer, so I'm going to rewrite my front-end using a CSS framework that has great components and a nice design out of the box. It's really great for people like me who need a few more "guard rails" to keep things looking alright.

Re: Spectre.css – A Lightweight, Responsive and Modern CSS Framework

#97
post #23

The more web development I’ve done the more I’ve swung back to just writing CSS myself rather than depending on CSS frameworks; I’ve ended up seeing these less as ways to accelerate development for a team that is skilled at frontend, but instead as a way for people who don’t like styling or have little experience in frontend development/low design sense to style things reasonably. But I keep seeing frontend framework…

While I share your sentiment about frameworks, I work in enterprise app development and I can't remember the last time I encountered someone else who had a firm grasp of CSS or even the Frameworks. Our organization adopted Bootstrap because it's a consistent and familiar framework and it takes less time for the inexperienced developers (most in my experience) to come up to speed on an app. When you have 20 developers…

This, in my opinion, is why frameworks of any ilk exist at all. Too many developers out there don't want to take the time to learn the language and the frameworks give them a (false, again, my opinion) sense of productivity.

But, especially with CSS, I really don't see the value provided by a framework. CSS isn't hard to learn or master! And as OP suggested, doing so means you get more done with less code.

I know a guy who set up a project with a framework. He had a nice scaffold of the project and was amazed and overjoyed with what he had done with so little effort until it was pointed out to him that he had 40,000 files in a project that didn't actually do anything. Much less solve the customers problem.

Re: Spectre.css – A Lightweight, Responsive and Modern CSS Framework

#98

Earlier quoted context omitted.

While I share your sentiment about frameworks, I work in enterprise app development and I can't remember the last time I encountered someone else who had a firm grasp of CSS or even the Frameworks. Our organization adopted Bootstrap because it's a consistent and familiar framework and it takes less time for the inexperienced developers (most in my experience) to come up to speed on an app. When you have 20 developers…

I'm going to have to agree. Out of all the technologies my team had to juggle while I was on a web team, CSS and its various components (CSS precompilers, sass/scss/less, frameworks, etc) were the hardest to keep neat. You don't _have_ to write CSS well to get it to work. People wouldn't follow naming conventions, wouldn't group common components near others... some people didn't understand CSS precedence and it coul…

This is where I have seen stylelint personally come into play and shine. https://github.com/stylelint/stylelint

It lints and validates the styles written and does it ruthlessly.

Re: Spectre.css – A Lightweight, Responsive and Modern CSS Framework

#99
post #72

What I enjoy about Spectre.css is that there is no javascript and the CSS is readable. It's easy to drop their CSS into a react component and extend it because it's so readable.

If you hover the homepage buttons, you can see they veeery slightly change color, to a different shade of purple. It's barely perceptible. Breaking fundamental rules of user experience right off the bat is not a good sign when I'm evaluating a CSS dependency.

What "fundamental rule" is being broken? Personally, I don't worry much about hover effects since they don't work on mobile anyway.

Re: Spectre.css – A Lightweight, Responsive and Modern CSS Framework

#100
post #23

The more web development I’ve done the more I’ve swung back to just writing CSS myself rather than depending on CSS frameworks; I’ve ended up seeing these less as ways to accelerate development for a team that is skilled at frontend, but instead as a way for people who don’t like styling or have little experience in frontend development/low design sense to style things reasonably. But I keep seeing frontend framework…

As far as I can see, people who know a client-side language well do not need to fall back on a framework, as the languages these days are more than capable of completing the tasks themselves, without being reimplemented by a framework over and over again.
Post reply on HN