mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-12 02:38:15 +00:00
25 lines
756 B
TypeScript
25 lines
756 B
TypeScript
import { extendTailwindMerge } from "tailwind-merge";
|
|
|
|
const twMerge = extendTailwindMerge({
|
|
extend: {
|
|
theme: {
|
|
text: ["display-xs", "display-sm", "display-md", "display-lg", "display-xl", "display-2xl"],
|
|
},
|
|
},
|
|
});
|
|
|
|
/**
|
|
* This function is a wrapper around the twMerge function.
|
|
* It is used to merge the classes inside style objects.
|
|
*/
|
|
export const cx = twMerge;
|
|
|
|
/**
|
|
* This function does nothing besides helping us to be able to
|
|
* sort the classes inside style objects which is not supported
|
|
* by the Tailwind IntelliSense by default.
|
|
*/
|
|
export function sortCx<T extends Record<string, string | number | Record<string, string | number | Record<string, string | number>>>>(classes: T): T {
|
|
return classes;
|
|
}
|