Frontend components framework v2 #543
Replies: 8 comments 17 replies
-
After again carefully reviewing and going through code of chakraUI it seems to be very opinionated as @arkid15r mentioned, ChakraUI has wider range of components no doubt but we would only need a few components out of it, and in the long run, we might not need many of them. ShadCN does have fewer components compared to ChakraUI, but I still believe that ShadCN seems like a better fit for our needs, especially from a flexibility and performance POV. We can always create custom components that closely replicate those in ShadCN if needed. Right now, ShadCN already provides almost all the components we require for this project, and it will also help us focus more on performance. Also not to forget chakraUI has a different custom styling pattern of its components which might not feel very intuitive. |
Beta Was this translation helpful? Give feedback.
-
Yes, I agree with @Dishant1804 . As per our needs, ShadCN would be a better option here, but I’m fine with either of the two |
Beta Was this translation helpful? Give feedback.
-
There are many libraries that offer a variety of components, including some with animations (e.g., Mantine, Aceternity, MUI, etc.). However, I think If we decide to fully switch to any UI library, we can even turn a simple div into Card or CardHeader(UI component) , but that might not always be ideal. UI libraries are great for speeding up development, but relying on them too heavily may lead to issues in the future. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@arkid15r i completely apologise for it and, the only thing that made me change my opinion was it will be difficult for other contributors to contribute to the project because ChakraUI will make project complex due to its highly opinionated styling and it is very less customizable maybe in some cases we will have to even alter the main component file it gives us which is not good in my opinion, and i think that changing opinion after thinking about everyone and betterment of the project is totally okay, i'll take extra care of this and take time to give my inputs from next time :) |
Beta Was this translation helpful? Give feedback.
-
Yes, Chakra UI provides long-term maintenance benefits when compared to Shadcn UI, but this largely depends on the specific needs of your project and how much control you want over styling and behavior. Here's a detailed comparison of long-term maintenance considerations: Chakra UI: Long-Term Maintenance Benefits
Shadcn UI: Long-Term Maintenance Considerations
Key Differences in Long-Term Maintenance
When Chakra UI is Better for Long-Term Maintenance
When Shadcn UI Might Be a Better Fit
ConclusionChakra UI offers long-term maintenance benefits by reducing the engineering and design overhead, making it an excellent choice for teams looking for stability, scalability, and developer convenience. Shadcn UI, while flexible, shifts much of the maintenance responsibility to your team, which can be a significant challenge over time. If long-term maintainability is a high priority, Chakra UI is generally the safer choice. |
Beta Was this translation helpful? Give feedback.
-
@Dishant1804 @yashgoyal0110 and folks, this is ai analysis based on a list of goals/non-goals I've provided: Based on your Goals and Non-goals, Chakra UI is the clear choice for your framework. Here's how it aligns with your needs: Goals Analysis
Non-goals Analysis
Why Not Shadcn UI?Shadcn UI is better suited for projects with the following characteristics:
However, based on your non-goals, Shadcn UI would introduce higher development and maintenance overhead, as it requires:
This contradicts your preference for out-of-the-box features and low-effort maintenance. ConclusionGiven your priorities for low maintenance, low development overhead, and out-of-the-box features, Chakra UI is the ideal framework. It allows you to move fast without reinventing the wheel, while its built-in accessibility and responsive design simplify both development and maintenance in the long run. |
Beta Was this translation helpful? Give feedback.
-
We've discussed this recently here (#538, #325) and in Slack. It seems this needs to be revisit as some of you strongly suggest using Chakra UI instead of our current choice shadcn/ui.
Chakra UI
Pros:
Pre-styled and Customizable:
Developer Experience:
Built-in Accessibility:
Composable Components:
Consistent Styling:
Custom Hooks:
useDisclosure
(for modals, popovers) to manage UI state.Cons:
Opinionated Styling:
Bundle Size:
Limited Customization:
Shadcn UI
Pros:
Unstyled and Flexible:
Minimalistic:
Customizable Components:
Performance:
Integration with Tailwind CSS:
Cons:
No Predefined Styles:
Learning Curve for Design System:
Fewer Components:
Documentation:
Comparison Summary:
Consider this as another chance to suggest something else too.
Beta Was this translation helpful? Give feedback.
All reactions