Files
webui/src/lib/utils.ts
T
2026-10-30 17:26:45 +01:00

22 lines
523 B
TypeScript

/*
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <hello@stalw.art>
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/
import { clsx, type ClassValue } from 'clsx';
import { extendTailwindMerge } from 'tailwind-merge';
const twMerge = extendTailwindMerge({
extend: {
classGroups: {
shadow: [{ shadow: ['tile', 'lift', 'pop', 'ink', 'primary'] }],
'font-family': [{ font: ['display'] }],
},
},
});
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}