From 24ec36ee7bbc3d61bb9a41ca1a0a0c2b2c7990b3 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 --- apps/www/content/docs/installation/astro.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/www/content/docs/installation/astro.mdx b/apps/www/content/docs/installation/astro.mdx index cb5e84c3de..cd89f807cc 100644 --- a/apps/www/content/docs/installation/astro.mdx +++ b/apps/www/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.