ITADN

Styles not generated for classes with negative values and decimals in Next.js using fluid-tailwind

#70Closedlasa-twp 创建于 2025-02-04
L
lasa-twpcommented
Hi there, Thank you for the wonderful plugin! I'm using it with Next.js, and I've encountered an issue. When I define classes with negative values and decimal points, the styles are not being generated. However, when I create the style class in CSS first and then use that class in the component, it seems to work fine. Example that doesn't work: ```html <div className="absolute top-1/2 ~-translate-y-2.5/5" /> ``` Example that works: ```css .example-style { @apply absolute top-1/2 ~-translate-y-2.5/5; } ``` ```html <div className="example-style" /> ``` Can you solve this problem?
关闭于 2025-02-05 2 条评论