mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
23 lines
597 B
TypeScript
23 lines
597 B
TypeScript
import { clsx, type ClassValue } from "clsx";
|
|
import { extendTailwindMerge } from "tailwind-merge";
|
|
|
|
const customTwMerge = extendTailwindMerge({
|
|
prefix: "tw-",
|
|
extend: {
|
|
classGroups: {
|
|
"text-color": ["text-muted", "text-success", "text-warning", "text-error", "text-accent"],
|
|
"font-size": [
|
|
"text-smallest",
|
|
"text-smaller",
|
|
"text-small",
|
|
"text-ui-smaller",
|
|
"text-ui-small",
|
|
"text-ui-medium",
|
|
"text-ui-larger",
|
|
],
|
|
},
|
|
},
|
|
});
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return customTwMerge(clsx(inputs));
|
|
}
|