Skip to content

Commit 02364d8

Browse files
committed
Docs: Add note about tw4
1 parent 29c9c24 commit 02364d8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Classes/Composer.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,21 @@ public static function postPackageUpdateAndInstall(?PackageEvent $event = null):
8484

8585
$console->outputLine('<success>Files copied successfully.</success>');
8686
$console->outputLine('');
87+
88+
if ($cssFramework == 'tailwindcss@4') {
89+
$console->outputLine('<info>Make sure to set up the Tailwind CSS 4 configuration as needed. Refer to the official Tailwind CSS documentation for guidance.</info>');
90+
$console->outputLine('');
91+
$console->outputLine('<info>An example CSS file could look like this:</info>');
92+
$console->outputLine('');
93+
$console->outputLine('@import "tailwindcss" source(none);');
94+
$console->outputLine('/* Config source based on Carbon.Pipline */');
95+
$console->outputLine('@config "#tailwindConfig";');
96+
$console->outputLine('');
97+
$console->outputLine('<info>Make sure that package.json has following entry:</info>');
98+
$console->outputLine('"imports": {');
99+
$console->outputLine(' "#tailwindConfig": "./tailwind.config.mjs"');
100+
$console->outputLine('}');
101+
}
87102
}
88103

89104
/**

0 commit comments

Comments
 (0)