Skip to content

Commit 355f7c2

Browse files
Update Tailwind v4+ guidelines (#321)
* docs: update Tailwind v4+ guidelines with configuration guidelines Signed-off-by: Pushpak Chhajed <[email protected]> * Revert 4.1 change Signed-off-by: Pushpak Chhajed <[email protected]> * Update core.blade.php --------- Signed-off-by: Pushpak Chhajed <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
1 parent 2b7909d commit 355f7c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
- Always use Tailwind CSS v4 - 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 is 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)