I did this with the help of Claude and it works. What are your thoughts?
// Helper function to convert pixels to rem
function pxToRem(px: number): number {
return px / 16 // Assuming base font size is 16px
}
const customHeadlines: Record<string, TypeDefinition> = {
'text-display-xxl': {
clamp: [pxToRem(64), pxToRem(264)],
classAlias: ['text-display-xxl'],
},
}
I did this with the help of Claude and it works. What are your thoughts?