Created
June 21, 2018 23:41
-
-
Save CaptainN/d295fdcb0321edd2c63c73502038dcb0 to your computer and use it in GitHub Desktop.
variable web font with cascade
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
@font-face { | |
font-family: 'Avenir Variable'; | |
src: url('/anv/anv-roman-var.woff2') format('woff2-variations'); | |
src: url('/anv/anv-roman-var.woff2') format('woff2' supports variations); | |
font-weight: 1 999; | |
} | |
@font-face { | |
font-family: 'Avenir Static'; | |
src: url('/anv/anv-medium.woff') format('woff'); | |
font-weight: 500; | |
} | |
@font-face { | |
font-family: 'Avenir Static'; | |
src: url('/anv/anv-heavy.woff') format('woff'); | |
font-weight: 800; | |
} | |
@font-face { | |
font-family: 'Avenir Condensed Static'; | |
src: url('/anv/anv-cond-medium.woff') format('woff'); | |
font-weight: 500; | |
} | |
.someclass { | |
font-family: 'Avenir Variable', 'Avenir Static', sans-serif; | |
font-weight: 500; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment