fonts: add Work Sans (#35343)

This commit is contained in:
Nicolas Roche 2019-08-09 17:05:20 +02:00
parent 97169895f1
commit e04107f792
44 changed files with 33 additions and 0 deletions

7
README
View File

@ -179,6 +179,13 @@ copyright notices:
#
# https://www.fontsquirrel.com/license/abel
* Work Sans
# Copyright (c) 2014-2015 Wei Huang (wweeiihhuuaanngg@gmail.com)
#
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
#
# https://www.fontsquirrel.com/license/work-sans
~~~~
Some theme variant files have their own specific licenses; refer to

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,26 @@
@mixin worksans-font($type, $weight) {
@font-face {
font-family: 'Work Sans';
src: url('/static/fonts/WorkSans/worksans-#{$type}-webfont.woff2') format('woff2'),
url('/static/fonts/WorkSans/worksans-#{$type}-webfont.woff') format('woff');
font-weight: $weight;
font-style: normal;
}
@font-face {
font-family: 'Work Sans';
src: url('/static/fonts/WorkSans/worksans-#{$type}italic-webfont.woff2') format('woff2'),
url('/static/fonts/WorkSans/worksans-#{$type}italic-webfont.woff') format('woff');
font-weight: $weight;
font-style: italic;
}
}
@include worksans-font('thin', 100);
@include worksans-font('extralight', 200);
@include worksans-font('light', 300);
@include worksans-font('regular', 400);
@include worksans-font('medium', 500);
@include worksans-font('semibold', 600);
@include worksans-font('bold', 700);
@include worksans-font('extrabold', 800);
@include worksans-font('black', 900);