From b564ff60fd626cd74f30ae089f1551ee86d0d0bf Mon Sep 17 00:00:00 2001 From: Peeranat Danaidusadeekul <85337926+peeranat-dan@users.noreply.github.com> Date: Sat, 21 Oct 2023 19:26:28 +0700 Subject: [PATCH] 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 Co-authored-by: shadcn --- content/docs/installation/astro.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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.