import { type ClassValue, clsx } from "clsx"; import { extendTailwindMerge } from "tailwind-merge"; const twMerge = extendTailwindMerge({ extend: { classGroups: { rounded: [ "rounded-uk-xs", "rounded-uk-sm", "rounded-uk-md", "rounded-uk-lg", "rounded-uk-xl", ], p: ["p-xxs", "p-xs", "p-sm", "p-md", "p-lg", "p-xl"], py: ["py-xxs", "py-xs", "py-sm", "py-md", "py-lg", "py-xl"], px: ["px-xxs", "px-xs", "px-sm", "px-md", "px-lg", "px-xl"], pt: ["pt-xxs", "pt-xs", "pt-sm", "pt-md", "pt-lg", "pt-xl"], pb: ["pb-xxs", "pb-xs", "pb-sm", "pb-md", "pb-lg", "pb-xl"], pl: ["pl-xxs", "pl-xs", "pl-sm", "pl-md", "pl-lg", "pl-xl"], pr: ["pr-xxs", "pr-xs", "pr-sm", "pr-md", "pr-lg", "pr-xl"], "font-size": [ "text-uk-xs", "text-uk-sm", "text-uk-md", "text-uk-lg", "text-uk-xl", "text-uk-xxl", ], "text-color": ["text-text-primary", "text-text-highlight"], }, }, }); export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); }