DEV Community

Discussion on: Discussion: best way add CSS to React/Next.js projects?

Collapse
 
thomasledoux1 profile image
Thomas Ledoux

Thanks for your reply!
The list is certainly handy :)
If we'd have some unstyled components we could indeed style them ourselves with Styled components, but it would be even better with a component library that styles them for you.
But that has some other negative effects of course..

Collapse
 
cristiancc profile image
CristianCC • Edited

Right sometimes using Tailwind I find myself styling the some components over and over again where I could use a component library and get a boost in productivity. Lately I have been using Chakra UI because of the great set of components out of the box it provides and every component can received styled props (margin, paddings, etc) so you rarely have to write custom CSS with other solution. And It's tree-shakable so it should remove all code except the code you use. A really good combination with NextJS

Thread Thread
 
thomasledoux1 profile image
Thomas Ledoux

Great! Thanks for the tip. I’ll check out Chakra UI first thing tomorrow