Files
nanobot/webui/src/lib/utils.ts
T
chengyongru 282839cc65 feat(webui): add reading text size preferences (#6325)
* feat(webui): add reading text size preferences

* fix(webui): align loading skeletons with reading typography
2026-10-20 16:33:05 +08:00

18 lines
565 B
TypeScript

import { clsx, type ClassValue } from "clsx";
import { extendTailwindMerge } from "tailwind-merge";
const twMerge = extendTailwindMerge({
extend: {
theme: {
borderRadius: ["mark", "compact", "control", "floating", "panel", "modal", "prominent"],
},
classGroups: {
"font-size": [{ text: ["ui", "ui-label", "ui-heading", "ui-body", "control-label", "caption", "title", "reading", "reading-small", "code", "code-dense", "composer"] }],
},
},
});
export function cn(...inputs: ClassValue[]): string {
return twMerge(clsx(inputs));
}