ui icon indicating copy to clipboard operation
ui copied to clipboard

docs: fix Remix setup doc

Open shihui-huang opened this issue 1 year ago • 2 comments

Motivation

While following the Remix setup documentation, I encountered an error when executing the CLI on the second step. The error message is depicted in the image below: image

It became apparent that the Tailwind CSS framework needs to be installed prior to executing the shadcn-ui initialization command.

Changes

To resolve this issue, I have reorganized the documentation to ensure that the Tailwind CSS installation section precedes the CLI execution section.

shihui-huang avatar May 11 '24 17:05 shihui-huang

@shihui-huang is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 11 '24 17:05 vercel[bot]

Other parts of this docs seems outdated too (like the remix.config.js). What do you think about suggesting to follow the tailwind installation steps (instead of retracing those steps here), then the ones related to shadcn-ui ?

Hi @alcpereira, I just updated the docs following the newest tailwind installation.

shihui-huang avatar May 12 '24 12:05 shihui-huang

i do not know if anyone tried this but even the changes above do not work this might help to debug:

  1. tailwindcss directly in the app folder works
  2. if i copy the html output and paste it into the route (where tailwind works) ... change class to className ... the css gets applied correctly
  3. using the output from @/components/ui/button ... comes out without any styles applied

if needed i can give a repo for this but it is literally the code from the docs + the updates from this issue

rares-lupascu avatar Jun 14 '24 10:06 rares-lupascu

@shihui-huang is this PR ready to go? Does it require an update?

shadcn avatar Jul 15 '24 08:07 shadcn

I'm closing this in favor of #3027. Please reopen if not a duplicate. Thank you.

shadcn avatar Sep 15 '24 08:09 shadcn