Skip to content

Commit

Permalink
docs(www): improve astro guide (shadcn-ui#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgastler authored Jul 12, 2023
1 parent ac5c727 commit 26c8d0f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apps/www/content/docs/installation/astro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,20 @@ import '@/styles/globals.css'
---
```

### Update astro tailwind config

To prevent serving the Tailwind base styles twice, we need to tell Astro not to apply the base styles, since we already include them in our own `globals.css` file. To do this, set the `applyBaseStyles` config option for the tailwind plugin in `astro.config.mjs` to `false`.

```ts {3-5} showLineNumbers
export default defineConfig({
integrations: [
tailwind({
applyBaseStyles: false,
}),
],
})
```

### That's it

You can now start adding components to your project.
Expand Down

0 comments on commit 26c8d0f

Please sign in to comment.