hymhub / css-to-tailwind

Convert CSS code to Tailwindcss syntax in real time
https://hymhub.github.io/css-to-tailwind/
MIT License
362 stars 22 forks source link

Inconsistencies found when converting Tailwind-based CSS #9

Open ErwinAI opened 1 year ago

ErwinAI commented 1 year ago

Hello @hymhub!

First of all, thank you for building this package! I've been going through some experiments with it and found out the dark modifier isn't detected, is that expected behavior?

hymhub commented 1 year ago

hi, thanks, you are right, dark mode is not supported, it will be developed later if there is enough time!

CamDX3906 commented 1 year ago

Hello @hymhub!

font-weight: bold;// normal... translate unsuccessful;I would like to know which other attributes are not supported?

hymhub commented 1 year ago

Hello @hymhub!

font-weight: bold;// normal... translate unsuccessful;I would like to know which other attributes are not supported?

Hey, this was caused by a misjudgement of the css attribute value during the transformation process, which has been fixed, and now the isUnit function's strict checking of the attribute value has been dropped from the source code, and all other attributes will not fail this way after that