PHPackages                             marcorieser/tailwind-merge-statamic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. marcorieser/tailwind-merge-statamic

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

marcorieser/tailwind-merge-statamic
===================================

v2.0.0(3mo ago)816.9k↓35.5%1MITPHPCI passing

Since Jun 16Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/marcorieser/tailwind-merge-statamic)[ Packagist](https://packagist.org/packages/marcorieser/tailwind-merge-statamic)[ RSS](/packages/marcorieser-tailwind-merge-statamic/feed)WikiDiscussions main Synced yesterday

READMEChangelog (8)Dependencies (9)Versions (11)Used By (0)

Tailwind Merge Statamic
=======================

[](#tailwind-merge-statamic)

This addon allows you to merge multiple [Tailwind CSS](https://tailwindcss.com/) classes and automatically resolves conflicts between them.

[![](https://raw.githubusercontent.com/marcorieser/tailwind-merge-statamic/main/art/example.png)](https://raw.githubusercontent.com/marcorieser/tailwind-merge-statamic/main/art/example.png)

Features
--------

[](#features)

This addon provides:

- An Antlers modifier for merging the Tailwind CSS classes.
- Installs the [`tailwind-merge-laravel`](https://github.com/marcorieser/tailwind-merge-laravel) package which provides the merge functionality within the Laravel context.

Installation
------------

[](#installation)

Run the following command from your project root:

```
composer require marcorieser/tailwind-merge-statamic
```

How to Use
----------

[](#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' }}

{{# output #}}

```

Alternatively, you can pass the names of the variables as params to the modifier and omit them in your class string:

```

```

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
-------------

[](#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](https://github.com/marcorieser/tailwind-merge-laravel).

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance80

Actively maintained with recent releases

Popularity33

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~144 days

Recently: every ~251 days

Total

8

Last Release

105d ago

Major Versions

v0.2.0 → v1.0.02023-10-19

v1.2.0 → v2.0.02026-03-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/182dfd043559a726306414781777e7c5960164230ca44e2703607194c296d54b?d=identicon)[marcorieser](/maintainers/marcorieser)

---

Top Contributors

[![marcorieser](https://avatars.githubusercontent.com/u/2395800?v=4)](https://github.com/marcorieser "marcorieser (23 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/marcorieser-tailwind-merge-statamic/health.svg)

```
[![Health](https://phpackages.com/badges/marcorieser-tailwind-merge-statamic/health.svg)](https://phpackages.com/packages/marcorieser-tailwind-merge-statamic)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)[statamic/seo-pro

68516.6k](/packages/statamic-seo-pro)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

23111.5k14](/packages/marcorieser-statamic-livewire)[aerni/livewire-forms

A Statamic forms framework powered by Laravel Livewire

2915.1k](/packages/aerni-livewire-forms)[aerni/advanced-seo

Comprehensive SEO addon for Statamic with flexibility in mind

1818.2k](/packages/aerni-advanced-seo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
