I made a workable template for using tailwind + shadcn in nextra.
You can find the config or direct use it at Github: nextra-docs-tailwind-shadcn-template