Skip to content

Commit 0d83ad8

Browse files
committed
docs: update Tailwind v4+ guidelines with configuration guidelines
Signed-off-by: Pushpak Chhajed <[email protected]>
1 parent ffbbb9b commit 0d83ad8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.ai/tailwindcss/4/core.blade.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
## Tailwind 4
22

3-
- Always use Tailwind CSS v4 - do not use the deprecated utilities.
3+
- Always use Tailwind CSS v4.1+ - do not use the deprecated utilities.
44
- `corePlugins` is not supported in Tailwind v4.
5+
- In Tailwind v4, configuration is CSS-first using the `@theme` directive — no separate `tailwind.config.js` file needed.
6+
@verbatim<code-snippet name="Extending Theme in CSS" lang="css">
7+
@theme {
8+
--color-brand: oklch(0.72 0.11 178);
9+
}
10+
</code-snippet>
11+
@endverbatim
512
- In Tailwind v4, you import Tailwind using a regular CSS `@import` statement, not using the `@tailwind` directives used in v3:
613
@verbatim
714
<code-snippet name="Tailwind v4 Import Tailwind Diff" lang="diff">

0 commit comments

Comments
 (0)