Skip to content

Instantly share code, notes, and snippets.

@owlsky
Last active December 17, 2017 18:36
Show Gist options
  • Save owlsky/798029573eb7f2b9be0c to your computer and use it in GitHub Desktop.
Save owlsky/798029573eb7f2b9be0c to your computer and use it in GitHub Desktop.
Converting Photoshop Letter Spacing to CSS
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
// Converting Photoshop Letter Spacing to CSS
@function getLetterSpacing($num) {
@return ($num / 1000) + em;
}
p {
letter-spacing: getLetterSpacing(50);
}
p {
letter-spacing: 0.05em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment