marcorieser/tailwind-merge-statamic
Larablocks Analysis
marcorieser/tailwind-merge-statamic works with Laravel 11, 12 and 13 (latest release v2.0.0, Mar 20, 2026).
Recommendation checks
Solid choiceSolid choice: maintained and up to date, meets 2 of 4 checks; below the bar for Recommended on use.
- Works with Laravel 13, the current version
- Released in the last 12 months (Mar 20, 2026)
- 2,208 downloads a month (needs 10,000)
- 8 GitHub stars (needs 100)
State
Maintained- Last stable release: Mar 20, 2026.
- 2 releases in the last 12 months.
- First released: Jun 16, 2023.
- Monthly downloads: 2,208.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.
| Install | |
|---|---|
composer require marcorieser/tailwind-merge-statamic |
|
| Latest Version: | v2.0.0 |
| Laravel: | 11 · 12 · 13 |
| License: | MIT |
| Last Updated: | Mar 20, 2026 |
| Links: | GitHub · Packagist |
Tailwind Merge Statamic
This addon allows you to merge multiple Tailwind CSS classes and automatically resolves conflicts between them.

Features
This addon provides:
- An Antlers modifier for merging the Tailwind CSS classes.
- Installs the
tailwind-merge-laravelpackage which provides the merge functionality within the Laravel context.
Installation
Run the following command from your project root:
composer require marcorieser/tailwind-merge-statamic
How to Use
Keep in mind: Later applied classes overrule previous ones.
Create your class string as you normally do and apply the modifier which then removes the conflicting classes:
{{ varable_holding_classes = 'bg-blue-500 w-8' }}
<div class="{{ 'w-10 h-10 rounded-full bg-red-500 {varable_holding_classes}' | tw_merge }}"></div>
{{# output #}}
<div class="w-8 h-10 rounded-full bg-blue-500"></div>
Alternatively, you can pass the names of the variables as params to the modifier and omit them in your class string:
<div class="{{ 'w-10 h-10 rounded-full bg-red-500' | tw_merge('varable_holding_classes', 'another_variable') }}"></div>
It is possible to apply the modifier to a string, an array or a combination of both:
{{ 'w-10 h-10 rounded-full bg-red-500 {variable}' | tw_merge }}
{{ ['w-10', 'h-10', 'rounded-full', 'bg-red-500', '{variable}'] | tw_merge }}
{{ ['w-10', 'h-10', ['rounded-full', 'bg-red-500'], '{variable}'] | tw_merge }}
Documentation
There is currently not more to that addon as written above, but the underlying Laravel package is capable of so much more. Please have a look at its GitHub Repo.
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| v2.0.0 | ^11.0 || | MIT | |
| v1.2.0 | MIT | ||
| v1.1.0 | MIT | ||
| v1.0.0 | MIT | ||
| v0.2.0 | MIT | ||
| v0.1.2 | MIT | ||
| v0.1.1 | MIT | ||
| v0.1.0 |