1.0.1 2025-08-06 14:28 UTC

This package is auto-updated.

Last update: 2025-08-06 14:30:34 UTC


README

Simple tailwind merge wrapper for php that converts conditional classes into a single string.

It's using gehrisandro/tailwind-merge-php to merge tailwind classes.

use Performing\Cn\Cn;

$isDark = true;
Cn::merge('p-1 bg-red-500', ['text-white bg-blue-500' => $isDark]);
// p-1 text-white bg-blue-500

$isDark = false;
Cn::merge('p-1 bg-red-500', ['text-white bg-blue-500' => $isDark]);
// p-1 bg-red-500