diff --git a/content/docs/installation/astro.mdx b/content/docs/installation/astro.mdx index cb5e84c3de3..cd89f807cc4 100644 --- a/content/docs/installation/astro.mdx +++ b/content/docs/installation/astro.mdx @@ -127,6 +127,16 @@ export default defineConfig({ }) ``` +### Update tailwind.config.cjs + +When running `npx shadcn-ui@latest init`, your tailwind config for content will be overwritten. To fix this, change the `content` section with the code below to your `tailwind.config.cjs` file: + +```js {2-4} showLineNumbers +module.exports = { + content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"], +} +``` + ### That's it You can now start adding components to your project.