since3-website/lib/utils.ts
2026-09-25 00:45:33 +02:00

15 lines
407 B
TypeScript

import { createCn } from "cn/config"
// Register the custom type scale from globals.css so class merging treats
// `text-mega` etc. as font sizes instead of colors (which would drop one of them).
export const cn = createCn({
extend: {
classGroups: {
"font-size": [
{
text: ["mega", "display", "statement", "title", "lead", "body", "label"],
},
],
},
},
})