Last active
August 27, 2021 12:13
-
-
Save wiseoldman/b7660e1acb39229f1d06db484506eeb4 to your computer and use it in GitHub Desktop.
[Adobe XD letter-spacing] SCSS mixin to convert letter-spacing from Adobe XD to CSS #xd #letter-spacing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin letter-spacing($spacing) { | |
letter-spacing: ($spacing / 1000) * 1em; | |
} |
@SFaraji sorry, I haven't been active on github for some time, did you resolve this?
I set up a test pen and can't find any issues myself: https://codepen.io/wiseoldman/pen/pmGmxy
Yes, no worries. Also thanks for the codepen reference!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, for some reason when I add this "@include letter-spacing(-41);" to my scss class, I don't get the result.
When I then do it manually it is working. Have you faced with something like this before?
Thanks,
Shahryar