siriwatknp / mui-treasury

A collection of ready-to-use components based on Material-UI
https://mui-treasury.com
MIT License
2.38k stars 151 forks source link

Big changes to MUI Treasury #1220

Closed siriwatknp closed 2 months ago

siriwatknp commented 10 months ago

Hello 2024, I'm back! After a long pause, I finally believe that the long-term vision of MUI Treasury is copy-pasting/CLI.

More than a year ago, I posted an RFC of the copy-pasting/CLI approach with some proof-of-concept but never published the work due to my full-time workload. At that time, I really liked how it gave me full control of the code but I'm not really sure if it would work with other people. Luckily, shadcn/ui has proved to be right with this approach so I am really confident that it's the right way to go.

Changes

MUI Treasury will no longer provide components or styles as NPM packages, instead lets you own the source code by copy-pasting or running the CLI to pull the source code to your project. This way is a win-win because I can produce more components faster without thinking too much about the API and you can fully customize them to match your needs!

How it looks like

It's that simple!

⏳ Work in Progress

closes #1215, closes #1162, closes #1136

mwillbanks commented 10 months ago

@siriwatknp great work, really like the new approach! Looking forward to the layout migration as it's essentially the main component we utilize consistently. As you noted in the storybook there:

I created this because

  • It took me a lot of time to initialize dashboard layout when I have new projects or ideas to prove and I’m sure that a lot of you are the same as me.
  • Because we need to be fast to let others continue our work, we frequently write poor and a lot of code. However, we say we don’t have time to fix them. Eventually, spend all day paying technical debts.

Exactly the reason we've been really enjoying that component!

siriwatknp commented 10 months ago

@siriwatknp great work, really like the new approach! Looking forward to the layout migration as it's essentially the main component we utilize consistently. As you noted in the storybook there:

I created this because

  • It took me a lot of time to initialize dashboard layout when I have new projects or ideas to prove and I’m sure that a lot of you are the same as me.
  • Because we need to be fast to let others continue our work, we frequently write poor and a lot of code. However, we say we don’t have time to fix them. Eventually, spend all day paying technical debts.

Exactly the reason we've been really enjoying that component!

Awesome! I'm focusing on the layout migration this week.

oliviertassinari commented 9 months ago

I had forgotten about this MUI Treasury and hence this change opportunity, this sounds like a great idea 👍