docs: add missing tailwind config in Astro install (#1264)

* docs: add missing tailwind config in Astro install

* style: prettier format

---------

Co-authored-by: Peeranat Danaidusadeekul <ppeeranat.d@skooldio.com>
Co-authored-by: shadcn <m@shadcn.com>
This commit is contained in:
Peeranat Danaidusadeekul
2023-10-21 19:26:28 +07:00
committed by GitHub
parent dd94aa936f
commit 24ec36ee7b

View File

@@ -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.