mirror of
https://github.com/stalwartlabs/webui.git
synced 2026-12-06 08:07:06 +00:00
22 lines
523 B
TypeScript
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));
|
|
}
|