Skip to content

Pixel values #5

Description

@ignaciogiri

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'],
  },
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions