Possible fix for values with different unit limitation #63
NikarashiHatsu
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, this library has a lot of potential and I will definitely use it in the future. But, upon stumbling this issue below, I got an idea on how to fix this.
I'm definitely not an expert in this library/package field of thing, but it just accross my head for a while. What if we could get the unit of the first argument (for example using the screenshot above, which is
1rem
), then convert the second argument (18px
) to1.125rem
?Just in case my explanation is not clear enough, my step-by-step that crossed in mind is:
rem
).1rem
topx
, which is16px
.18px/16px
, which results in1.125rem
.~p-[1rem]/[1.125rem]
The another limitation in mind is, it is hard to comply every different units, but I think it is a good first step to resolve the limitation.
Beta Was this translation helpful? Give feedback.
All reactions