tales-from-a-dev / twig-tailwind-extra
A Twig extension for Tailwind
Package info
github.com/tales-from-a-dev/twig-tailwind-extra
Type:twig
pkg:composer/tales-from-a-dev/twig-tailwind-extra
v1.4.0
2026-08-14 11:51 UTC
Requires
- php: >=8.1
- symfony/cache: ^6.4 || ^7.0 || ^8.0
- symfony/framework-bundle: ^6.4 || ^7.0 || ^8.0
- tales-from-a-dev/tailwind-merge-php: ^0.4
- twig/html-extra: ^3.24
- twig/twig: ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.38
- symfony/phpunit-bridge: ^6.4 || ^7.0 || ^8.0
- symfony/yaml: ^6.4 || ^7.0 || ^8.0
README
Twig Tailwind Extra
This extension provides Twig filters for Tailwind.
The following filters are available
tailwind_merge(): Integration of tailwind-merge-phptailwind_classes(): Build a mergeable list of Tailwind classes for use with Twig'shtml_attr()/html_attr_merge()
Documentation
The bulk of the documentation is stored in the docs directory of this bundle:
Versioning
This extension follows semantic versioning. The tales-from-a-dev/tailwind-merge-php constraint is moved in a minor release, so a minor may change merged output wherever the merger fixed a bug.
Credits
License
This extension is under the MIT license.
For the whole copyright, see the LICENSE file distributed with this source code.