mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-28 15:14:12 +00:00
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:
committed by
GitHub
parent
dd94aa936f
commit
24ec36ee7b
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user