Hey there! First of all, thank you for writing this tool!
Let me also preface this by mentioning that I am just starting out with tailwind, so excuse me if I'm fixing something that's not actually broken.
The problem:
When I converted my bootstrap project to tailwind, I noticed that
tailwindo 'py-lg-0' returned Converted Code: 'lg:py-2'. This didn't seem correct, 'lg:py-0' was expected.
I was tempted to just open an issue but then curiosity got the better of me and I tried fixing it myself.
What I have done to fix it:
Since bootstrap's spacing steps are a little awkward to code arithmetically, I went with a new $spacings array.
I also combined the string generation for padding and margin by looping through $spacingProperties = ['p', 'm'];
My code is backed up with (probably too many?) tests inside a new Bootstrap folder, so it's easier for you to check the results.
Hey there! First of all, thank you for writing this tool!
Let me also preface this by mentioning that I am just starting out with tailwind, so excuse me if I'm fixing something that's not actually broken.
The problem:
When I converted my bootstrap project to tailwind, I noticed that
tailwindo 'py-lg-0'
returnedConverted Code: 'lg:py-2'
. This didn't seem correct,'lg:py-0'
was expected.I was tempted to just open an issue but then curiosity got the better of me and I tried fixing it myself.
What I have done to fix it:
$spacings
array.$spacingProperties = ['p', 'm'];
Hope this helps 🙂