Skip to content

Instantly share code, notes, and snippets.

@dieppon
Created April 10, 2014 11:32
Show Gist options
  • Save dieppon/10371262 to your computer and use it in GitHub Desktop.
Save dieppon/10371262 to your computer and use it in GitHub Desktop.
James Wilson's (https://gist.github.com/jameswilson) mixing for the 'font-smoothing' CSS rule
@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