Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Twig Tailwind Extra Laravel Package

tales-from-a-dev/twig-tailwind-extra

A Twig extension adding Tailwind CSS filters: tailwind_merge() integrates tailwind-merge-php to resolve conflicting utility classes, while tailwind_classes() builds mergeable class lists for Twig's html_attr() and html_attr_merge(). Requires PHP 8.1+, Twig 3+, and Tailwind 4+.

View on GitHub
Deep Wiki
Context7

Tests PHP Version Twig Version Tailwind Version Packagist Version License

Twig Tailwind Extra

This extension provides Twig filters for Tailwind.

The following filters are available

  • tailwind_merge(): Integration of tailwind-merge-php
  • tailwind_classes(): Build a mergeable list of Tailwind classes for use with Twig's html_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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib