barvian / fluid-tailwind

Scale utilities smoothly between breakpoints with CSS clamp().
https://fluid.tw
906 stars 15 forks source link

Warning will be thrown for .5 values #27

Closed mdillgen closed 4 months ago

mdillgen commented 4 months ago

First of all, thank you!!! It is such a great plugin!

The plugin issues a “Missing end value” warning if decimal values are used, e.g. ~my-1.5/4 In some occasions “Start and end values are both 0.25rem”. Both is not true and everything is working as expected.

Reproduction repo: https://github.com/mdillgen/next15.git

barvian commented 4 months ago

Thanks for the repo! Looking into this

mdillgen commented 4 months ago

@barvian Just wanted to add FYI: I have used next15rc for the repo but warnings also appear on latest (next 14.2.3).

barvian commented 4 months ago

Alright so it looks like this was related to a known Tailwind limitation (see tailwindlabs/tailwindcss#9354). I just released v0.3.9 that now outputs all errors as CSS comments instead of console warnings, which should address this and probably improves the DX overall (see i.e. #20). Here's the updated portion of the docs, if you're interested.

Thanks for reporting! Feel free to leave another comment if you have any feedback

mdillgen commented 4 months ago

Thanks for the quick reaction!