Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
@font-face less mixing
.font (@font-name, @font-file, @font-weight: normal, @font-style: normal) {
@font-face {
font-family: @font-name;
src:url('../fonts/@{font-file}.woff2') format('woff2'),
url('../fonts/@{font-file}.woff') format('woff'),
url('../fonts/@{font-file}.ttf') format('truetype');
font-weight: @font-weight;
font-style: @font-style;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.