Skip to content

Instantly share code, notes, and snippets.

@curtisj44
Last active January 26, 2018 19:28
Show Gist options
  • Save curtisj44/d02ce8dab222d9678d36 to your computer and use it in GitHub Desktop.
Save curtisj44/d02ce8dab222d9678d36 to your computer and use it in GitHub Desktop.
font-smoothing Sass mixin
=font-smoothing($apply: true) {
@if ($apply == true) {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
} @else {
-moz-osx-font-smoothing: auto;
-webkit-font-smoothing: subpixel-antialiased;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment