ITADN

Settings default leading class with TW Merge not working

#65Openstijns96 创建于 2024-12-12
S
stijns96commented
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 :) ```js 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](https://github.com/user-attachments/assets/6b03dded-8170-4bae-b2ef-0f8fce2cd0e4) As you can see in the image above, there is no leading class in my element.
2 条评论