Skip to content

Commit

Permalink
docs: add missing tailwind config in Astro install (shadcn-ui#1264)
Browse files Browse the repository at this point in the history
* docs: add missing tailwind config in Astro install

* style: prettier format

---------

Co-authored-by: Peeranat Danaidusadeekul <[email protected]>
Co-authored-by: shadcn <[email protected]>
  • Loading branch information
3 people authored Oct 21, 2023
1 parent 568e153 commit b564ff6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/docs/installation/astro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b564ff6

Please sign in to comment.