Skip to content

Commit cd613b2

Browse files
authored
chore(docs): update documentation for tailwind css (#39324)
update documentation for tailwind css
1 parent a64fedf commit cd613b2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/docs/how-to/styling/tailwind-css.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Tailwind CSS is a utility-first CSS framework for rapidly building custom user i
66

77
## Installing and configuring Tailwind
88

9-
Please follow the [official "Install Tailwind CSS with Gatsby" guide](https://tailwindcss.com/docs/guides/gatsby) to install and configure Tailwind CSS with Gatsby. Some important notes when configuring Tailwind with Gatsby:
9+
### Tailwind v3
10+
11+
Please follow the [official "Install Tailwind CSS with Gatsby" guide](https://v3.tailwindcss.com/docs/guides/gatsby) to install and configure Tailwind CSS with Gatsby. Some important notes when configuring Tailwind with Gatsby:
1012

1113
- It is **not recommended** that you include Gatsby's output directories (`public` and `.cache`) in your `content` array in your `tailwind.config.js`. You should only include your source files to have Tailwind working as expected.
1214
- If you use [GraphQL Typegen](/docs/how-to/local-development/graphql-typegen/) a file at `src/gatsby-types.d.ts` will be generated and with the default configuration for `content` in `tailwind.config.js` this will trigger an infinite loop. You have two options to fix this:
@@ -22,6 +24,10 @@ Please follow the [official "Install Tailwind CSS with Gatsby" guide](https://ta
2224
}
2325
```
2426

27+
### Tailwind v4
28+
29+
Currently, there's no official dedicated page for installing Tailwind with Gatsby in the Tailwind v4 documentation. However, the [installation instructions](https://tailwindcss.com/docs/installation/using-postcss) and/or the [Upgrade Guide](https://tailwindcss.com/docs/upgrade-guide) from Tailwind v3 to v4 should suffice.
30+
2531
## Other resources
2632
2733
- [Tailwind Documentation](https://tailwindcss.com/)

0 commit comments

Comments
 (0)