10 ms·
Spectre.css – A Lightweight, Responsive and Modern CSS Framework
- deleted 8y ago[deleted]
- matchbok 8y agoI'm just gonna say it. We don't need another "lightweight, responsive, modern" CSS framework. It's a solved problem.
- jv22222 8y agoIMHO Everyone should write at least one framework of some kind. Bonus if it's open source. It's a huge learning experience. Gives you a deeper understanding of how other other frameworks work. Helps you understand user and customer support. How to write documentation. Great for your resume. Etc. In other words, if you only ever consume frameworks it makes it difficult to know what to do or how to approach solving some of the lower level issues a framework may present.
- Jac21 8y agoDo you have any personal experience in doing so? They seem like tempting projects from the outset, but getting started with some clear goals in mind, alongside philosophical/idealistic differences from what's already out there so you're not simply rewriting something for the sake of it has prevented me from getting too far down a particular rabbit-hole.
- jv22222 8y agoAh yes. Sorry this reply is so late. My first php framework was something called php4gl back before ruby on rails was created. It used the command line to bake controllers and such. Just a private project never released. Lost the code now! I also wrote another couple more php frameworks. I used one for all my personal side projects. And I wrote a couple for day jobs website over the years. Actually it wasn't until Laravel came out that I was convinced NOT to write or use my own php framework ;) So, now I've stopped writing php frameworks. But, I still write a CSS component framework from scratch for every project. I wrote a really quirky javascript framework called Double Dollar that worked using a kernel pattern. Anyone I showed it to thought it was nuts. I abandoned it and now just use jquery for projects I work on like https://nugget.one https://nugget.one Probably the most sucessfull open source project I created was ezSQL. Wordpress ended up using it as their original database class and then as the API interface for their current wpdb database class. I think a lot of people probably curse me for that ;)
- city41 8y agoCurious what people are using css frameworks for these days. I used to use minimal ones to get some kind of grid support. But now I just use css grid. Are people still using frameworks due to needing to support old browsers?
- hliyan 8y agoPerhaps the issue is with the constant use of the adjective "modern" in many new libraries and frameworks. It implies that there are no other notable benefits than the implementation being based on newer technologies and development practices. Is it faster (than what's current out there), more stable or easier to use, would be the answer that most prospective users look for...
- tomcam 8y agoI like fast, small web pages because not everyone has a broadband connection at all times. Can you tell me what other mature, tested, well-supported CSS frameworks have a feature set that large in less than 25% of Bootstrap's size?
- hardwaresofton 8y agohttps://purecss.io/ https://purecss.io/ http://getskeleton.com/ http://getskeleton.com/ https://tachyons.io/ https://tachyons.io/ https://bulma.io/ https://bulma.io/ https://picnicss.com/ https://picnicss.com/ https://www.muicss.com/ https://www.muicss.com/ [EDIT] - BTW, I mean this with less snark and more did-you-know-all-these-existed? I knew of purecss & skeleton (and I've forgotten a few, because it used to be very common to see these), and I've seen bulma before but some others were new to me (and I favorited them to give a try on some random project)
- me_bx 8y agoSkeleton is not maintained anymore. Skeleton-framework is one of the more up-to-day forks, which kept the original philosophy: https://skeleton-framework.github.io/ https://skeleton-framework.github.io/
- tomcam 8y agoThanks! I chose Spectre after evaulating every one of these. Skeleton came very close. It's old but still looks incredibly good IMHO.
- hardwaresofton 8y agoPureCSS was one of my favorites for a very long time. These days I use component frameworks like ElementUI[0] more than anything else to maintain consistent styling (since most things on the page happen to be components). [0]: https://github.com/ElementUI https://github.com/ElementUI
- rimliu 8y agoThe first question to ask should not be "what framework should I use?" it should be "do I really need a framework?"
- dmitriid 8y agoIn which way is it solved? It takes insanely hard work to pull off a consistent cross-component design in CSS.
- matchbok 8y agoPick one of the 100+ frameworks that do 100% of what this one does.
- wild_preference 8y agoI didn't think any of them looked as good as Spectre.css for my project. Next?
- tomcam 8y agoDo tell which ones fit that qualification?
- thomas 8y agoIt’s lightweight and usable but far less complete than other options. How are people picking one framework another?
- dayze 8y agoWhat are some more complete alternatives? I think there is a blurred line between "lightweight" and "complete", and the various frameworks land either side of it.
- jaytaylor 8y agoWhy am I seeing ads on their github.io documentation and example pages? Is the point to show something cool to devs or pick up pageview pennies? I'm out!
- ahreflink 8y agoGod forbid someone tries to monetize a project he's spent over two and a half years developing/maintaining..
- jaytaylor 8y agoPerhaps I should clarify. I've got no issue with engineers seeking compensation for their work. I know the world can be a harsh place, and some people truly need the money. Michael, you're absolutely right. People can insert whatever markup and JS they choose. It simply seems an odd strategy for a CSS framework to squeak by on ads in the docs. An unfortunate side effect in this case is it makes it unclear what parts are documentation or examples, and what is an ad.
- wild_preference 8y agoCan you seriously say it's hard to distinguish the ads from content here with a straight face? Bootstrap 3 docs had ads too.
- jaytaylor 8y agoOn mobile, yes.
- jazoom 8y agoI've been using this for years. Did something significant happen with it?
- tomcam 8y agoNew release, but I just felt HNers needed to know about it.
- jazoom 8y agoI've always thought it strange this project isn't more popular.
- nathan_f77 8y agoThanks 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.
- 52-6F-62 8y agoSame, not in anything intensive. Used it for my home/blog page. Looks like they definitely extended it further. I've liked the results better than some other lightweight frameworks. Didn't customize it much, either. Site's in my profile.
- codyeatworld 8y agoWhat 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.
- koboll 8y agoIf 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.
- calibas 8y agoWhat "fundamental rule" is being broken? Personally, I don't worry much about hover effects since they don't work on mobile anyway.
- romanovcode 8y agoYou don't need javascript to run Bootstrap too.
- manigandham 8y agoI prefer https://tachyons.io/ https://tachyons.io/ as a CSS framework that avoids any pre-styled themes and just provides building blocks. Great for SPA/component UIs.
- pixard 8y agoAnyone interested in this approach may also like Tailwind https://tailwindcss.com/ https://tailwindcss.com/
- thestepafter 8y agoTailwind is absolutely fantastic. I can code CSS 2-3 times faster and I no longer hate doing it.
- evolve2k 8y agoHow do we classify the progression that is tachyons/tailwind? Each time I see a new CSS framework I also think, is this yet another framework for devs that can’t desigh or is someone working to move the needle beyond what tachyons/tailwind have set a new place of maintainable CSS.
- m45t3r 8y ago> How do we classify the progression that is tachyons/tailwind? Each time I see a new CSS framework I also think, is this yet another framework for devs that can’t desigh or is someone working to move the needle beyond what tachyons/tailwind have set a new place of maintainable CSS. AFAIK, functional CSS frameworks like Tailwind are getting relevance thanks to the recent boom of functional programming.
- subhajeet2107 8y agoHow is this different from inline styling ? this throws class inheritance out of the window
- 8y ago
- ww520 8y agoSpectre is pretty good. I've used it in several projects. It works well.
- osi1647 8y agoNot a css framework, but I still like to share Material-UI https://material-ui.com/ https://material-ui.com/ It has many components available out of the box.
- zwaps 8y agoThe example pages are unbearable slow and lagging on my 4-core 7700HQ CPU. I don't know what the reason is, but it sure isn't a minimal framework. I am no web developer, mind you, but I have yet to see any case where such heavy load really increases the benefit I get from a site. Usually it is quite the opposite. It is my opinion that any web-developer using these sort of megabyte-sized frameworks should have their license revoked.
- deleted 8y ago[deleted]
- osdiab 8y agoThe 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 frameworks on HN - am I/teams like mine that include at least one person fluent enough in CSS to write reasonable style sheets/styled components, just not the target audience? Or do other experienced frontend devs swear by UI frameworks like these for reasons I haven’t grasped yet? If so, why?
- rimliu 8y agoOne of the sad realities of the web was proliferation of bootstrap everywhere. IIRC it was intended as a prototyping framework at first. But even sadder is grid frameworks based on the CSS grid popping up :( https://www.youtube.com/watch?v=mDRfFEcj3-Q https://www.youtube.com/watch?v=mDRfFEcj3-Q
- stephenr 8y agoFor 'business CRUD' interfaces, choosing something like Bootstrap is a good option. Record lists and entry edit forms etc generally don't need a designers eye.
- noir_lord 8y agoAgreed, That's certainly what I do and how I use it, also BS4 is very modular, you can tear out all the bits you don't use (or comment them out in case you ever do need them) and it's relatively trivial to alter other things (I use a 24-col grid with a 16px gutter width instead of the default 12/30 etc). I could replicate the bits I use from bootstrap using something else or from scratch but the RoI in terms of time invested just makes no sense. I don't think I've ever used bootstrap 'as is' since 2, I generally create something similar to a 'theme' that is layered on top of whatever is BS-current, makes upgrading a lot less painful that way since I isolate a lot of my changes. The big advantage is done right you leverage all the thousands of bug reports to fix things without overly constraining yourself.
- Gritt 8y agoLightweight => 10 KB I'm actually more looking for a grid system using flex in a few bytes
- Zealotux 8y agoIt's written is Sass, you can simply import only the components that you need such as the grid.
- cageface 8y agoCSS grid works in all modern browsers now. It’s totally change the way I do layouts and is way less cumbersome to just use directly than these other hand rolled float or flex grid systems.
- mscasts 8y agoLooks good, I'll use it!
- vmware513 8y agohttps://github.com/troxler/awesome-css-frameworks https://github.com/troxler/awesome-css-frameworks
- teh_klev 8y agoI wish people would stop using "awesome", especially in a "curated" (don't get me started there either) list that has tens to hundreds of things. There is no way the author could possibly know if all of these frameworks are "awesome".
- cyphunk 8y agoAre there by chance any samples with Arabic in this framework? Hoping it resolves the large size disparity between Latin and Arabic font sizes
- kowdermeister 8y agoI like how the icons are crafted with minimal elements and not requiring font awesome or some other font. https://picturepan2.github.io/spectre/elements/icons.html https://picturepan2.github.io/spectre/elements/icons.html
- petecooper 8y agoPrevious discussion from 2016 (50+ comments): https://news.ycombinator.com/item?id=11758034 https://news.ycombinator.com/item?id=11758034
- mrweasel 8y agoOne thing I noticed, and Spectre.css certainly isn't alone in doing this, the default button look gives you zero indication that it's clickable.
- fareesh 8y agoI generally like to see a "kitchen sink" page with everything from the framework in addition to the option of having to go through the various parts and discovering whether they exist and what the defaults look like. I don't know if this is a popular opinion, but if so it would be nice if it became the de-facto practice when these are released. This applies to all frameworks pretty much - if your web framework supports out of the box internationalization, caching, authentication, etc. the best way to sell me on it is for you to release a demo with all the bells and whistles, written with the conventions, folder structure, architecture, etc. that you advocate.
- nambit 8y agoYeah I kept going through the docs trying to find that. Left disappointed.
- eneoes 8y agoI would like to start using it on my next project Thank you so much!
- usermac 8y agoDude, I appreciate your work.
- tomcam 8y agoNot mine (I'm OP), but Yan Zhu, the creator, just needs way more attention. If you imagine an ego continuum with Richard Stallman on one end, Yan Zhu is the exact opposite. It's a little bit of effort just to find his name.
- SnowingXIV 8y agoConfused why this is posted again, it's been submitted many times. (Maybe there was a big release? Just looks like updated docs). Having said that, I've used this for a number of projects and enjoyed it much more than heavier solutions. There is no js so you just write your own in and it's really easy to mold to your own liking. It was "just" enough and produced polished looking crud apps. Mostly search and form stuff with tables but users have enjoyed it so I give the author credit. I also had to spend way more time working on the backend and this did not get in the way.
- tomcam 8y agoHN doesn't mind revisiting topics from time to time. It's been a couple of years and HN has grown enormously since then. And FWIW I spent a long, long time settling on Spectre,css, which isn't perfect but which I feel covers a huge range of standard business purposes with an amazingly light footprint.
- matt_lo 8y agoI wish this was a React lib with components styled already.
- __bjoernd 8y agoWho ever came to with this naming?
- nwmcsween 8y agoThis will probably be a unpopular opinion but I think HTML should be fully semantic with a naming scheme for custom elements (not BEM, etc), take for example classic breadcrumb navigation, the element name would be <breadcrumb-ul> to convey it inherits from HTMLUListElement so the actual structure isn't just an unknown mess of custom tags.
- marcusjt 8y ago"Accessibility - coming soon" This is not acceptable any more.