We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello.
I was diving into the code and noticed that pxToTailwind doesn't seem to ever return null but it is documented as possibly returning it.
pxToTailwind
When round is true, it will find the nearest key in the map and return its value (which is always a string it seems).
When round is false, it will return a string with the exact pixels specified.
If this is corrected, a good number of truthy checks in other conversion functions could likely be removed.
FigmaToCode/packages/backend/src/tailwind/conversionTables.ts
Line 53 in a783b5c
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello.
I was diving into the code and noticed that
pxToTailwind
doesn't seem to ever return null but it is documented as possibly returning it.When round is true, it will find the nearest key in the map and return its value (which is always a string it seems).
When round is false, it will return a string with the exact pixels specified.
If this is corrected, a good number of truthy checks in other conversion functions could likely be removed.
FigmaToCode/packages/backend/src/tailwind/conversionTables.ts
Line 53 in a783b5c
The text was updated successfully, but these errors were encountered: