Skip to content

[TW Merge] Leading gets removed by arbitrary font size #65

Open
@stijns96

Description

@stijns96

Hi there,

first of all, this plugin is great! I do have a small issue tho...

It looks like tw merge is removing my leading class, while I don't have a leading applied with fluid. I also don't use the fontSize from fluid, as I don't want the default line-height to be set. I always wondered why tailwind adds this out of the box, since this is in most project far from ideal... But that is another topic :)

cva("font-bold leading-tight", {
    variants: {
      level: {
        1: "~text-[3.815rem]/[5.61rem]",
        2: "~text-[3.052rem]/[4.209rem]",
        3: "~text-[2.441rem]/[3.157rem]",
        4: "~text-[1.953rem]/[2.369rem]",
        5: "~text-[1.563rem]/[1.777rem]",
        6: "~text-[1.25rem]/[1.333rem]",
      },
    },
  }),

image

As you can see in the image above, there is no leading class in my element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions