scaffold-eth / scaffold-eth-2

Open source forkable Ethereum dev stack
https://scaffoldeth.io
MIT License
1.41k stars 887 forks source link

tinker with shadcn #935

Open technophile-04 opened 2 months ago

technophile-04 commented 2 months ago

Goal:

Tinker with SE-2 x ShadCn to see if it nicely integrates with our needs.

We can go with 2 routes:

The rationale behind replacing daisUI with shadcn is because on surface level I think shadcn should be able to replace daisyUI in SE-2 but sometimes as we go deep into rabbit hole we hit some bad blockers that does not go with ethos of SE-2 like #444...but yeah lets tinker and see if route 1 is an option

Even if we don't go with 1st route, I think it's really good to have shadcn as core extension in create-eth

rin-st commented 2 months ago

Great!!

we keep base SE-2 with daisyUI but allow shadcn through extensions

I think it's not the case

The rationale behind replacing daisUI with shadcn is because on surface level I think shadcn should be able to replace daisyUI in SE-2

Agree!

Btw, shadcn works fine with yarn, but their yarn copy button uses npx for yarn (looks like a bug). I used yarn dlx instead

image
rin-st commented 2 months ago

Theme generator which can help us to generate our color https://zippystarter.com/tools/shadcn-ui-theme-generator paste our primary color #93BBFB

But looks like we need to use it at the last steps before removing daisyui