Module exposing: cn
// Source: https://github.com/sunchayn/nimbus | License: MIT | Copyright Mazen Touati <mazen_touati@hotmail.com>
// Provided via justclaw.it.com; keep this notice with the code.
import { type ClassValue, clsx } from 'clsx';
import { extendTailwindMerge } from 'tailwind-merge';
// The theme preset lives outside resources/js, so the alias cannot reach it.
// eslint-disable-next-line import/no-relative-parent-imports
import { createTwMergeConfig } from '../../../../tools/ui/theme.js';
import structureCss from '../../../css/structure.css?raw';
// Knows the token utilities, so gap-base replaces gap-2 like the Nuxt UI components do.
const twMerge = extendTailwindMerge(createTwMergeConfig(structureCss));
/**
* Combines and merges Tailwind CSS classes intelligently.
*
* Uses clsx for conditio
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key