Skip to content

Instantly share code, notes, and snippets.

@cmandersen
Created April 22, 2015 12:53
Show Gist options
  • Save cmandersen/5237cf93ab2931612b01 to your computer and use it in GitHub Desktop.
Save cmandersen/5237cf93ab2931612b01 to your computer and use it in GitHub Desktop.
Font smoothing SASS mixin
@mixin font-smoothing($value: antialiased) {
@if $value == antialiased {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@else {
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: auto;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment