tales-from-a-dev/twig-tailwind-extra
Twig extension that adds Tailwind helpers to your templates. Includes a tailwind_merge() filter powered by tailwind-merge-php to intelligently combine Tailwind CSS class strings and resolve conflicts. Requires PHP 8.1+, Twig 3+, Tailwind 4+.
This release moves the tales-from-a-dev/tailwind-merge-php constraint from ^0.3 to ^0.4. Two things to know before updating:
"p-2\np-4" yields "p-4". 0.4 also fixes merging for legacy ! combined with a / postfix, multibyte arbitrary values, and 0-labelled arbitrary values.cache:clear, since cache.twig.tailwind is a cache.system child.Merged results are now also held in an in-memory LRU cache of 500 entries in front of the Symfony pool, sizable through the cacheSize key — see the documentation.
Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v1.3.0...v1.4.0
tailwind_classes filter for mergeable Tailwind classes by @Kocal in https://github.com/tales-from-a-dev/twig-tailwind-extra/pull/27Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v1.2.0...v1.3.0
Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v1.1.0...v1.2.0
Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v1.0.1...v1.1.0
merge(), by using ArrayAdapter cache by @Kocal in https://github.com/tales-from-a-dev/twig-tailwind-extra/pull/22Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v1.0.0...v1.0.1
Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v0.6.0...v1.0.0
Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v0.5.0...v0.6.0
Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v0.4.0...v0.5.0
Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v0.3.0...v0.4.0
Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v0.2.1...v0.3.0
Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v0.2.0...v0.2.1
Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v0.1.0...v0.2.0
How can I help you explore Laravel packages today?