Show HN: React and Tailwind CSS UI Components (codesnaps.io)
CodeSnaps is a React and Tailwind CSS UI component library with dark mode support. It helps developers to design faster and better with copy-and-paste code snippets without building their MVPs and apps from scratch.
18 comments
[ 4.2 ms ] story [ 45.0 ms ] threadPersonally I prefer MUI over Tailwind (there is layout overlap there, but MUI is much more than layout). But either one is much nicer to use than raw CSS when you are composing complex pages and dashboards. It's like you said, working with higher level components, just with layout also mostly finished out (but both frameworks let you adjust things in-situ like padding, margins, font sizes, colors and such in a clean and maintainable way)
>What is the benefit of Tailwind anyway?
I'm prototyping design systems using Tailwind which saves me some minutes of work every day. It also uses just a CDN script that I directly load in the browser, no bundling required. I have an empty "tailwind.config.js" in the root directory in order to use the Tailwind language service.
It also isn't just inline CSS, which has issues being bundled separately and dealing with media queries.
There are a number of benefits, but Tailwind's verbosity is it's biggest downside. Unfourtanetly, if you just want a single style sheet, the verbosity is just a tradeoff you have to make.
They have kind of reduced the CSS landscape from very complex to a concise subset that does most of the stuff you want for a modern looking site. It gets to the point where the amount of stuff fits into working memory. It is convenient.
Then if you copy-paste components from different places like for example this submission and others, they can play well together. You can go in an edit them and manipulate them in predictable ways. You can componentise them in say React if you wish.
Imagine mixing up Bootstrap and Bulma - it would be quite hard to do. But if they are both based on Tailwind it is a lot easier. The components wont fight each other. The reality is none of the frameworks provide everything you need so you need to mix and match to get stuff done (or invent your own, which is OK too).
Hope this makes sense. It is hard to explain because you have to do it to feel it.
Tagline says it's focused on dashboards, but I guess these contain so many kinds of common components that it might be generally useful
Bought the tailwind components before, The reason that drives me to buy it is because they can really help me build landing page, and pricing page really fast.
The components in code snaps is limited and not too much fancy and complete templates, which I can hardly find reason for purchasing.