fonts: add fira sans (#41295)

This commit is contained in:
Frédéric Péters 2020-04-02 17:11:51 +02:00
parent b7ad8c93c7
commit b4480dd276
38 changed files with 35 additions and 0 deletions

9
README
View File

@ -273,6 +273,15 @@ copyright notices:
#
# https://www.fontsquirrel.com/license/yantramanav
* Fira Sans
# Copyright (c) 2014, Mozilla Foundation https://mozilla.org/
# with Reserved Font Name Fira Sans.
# Copyright (c) 2014, Telefonica S.A.
#
# This Font Software is licensed under the SIL Open Font License, Version 1.1.
#
# https://www.fontsquirrel.com/license/fira-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.

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 firasans-font($type, $weight) {
@font-face {
font-family: 'Fira Sans';
src: url('/static/fonts/FiraSans/firasans-#{$type}.woff2') format('woff2'),
url('/static/fonts/FiraSans/firasans-#{$type}.woff') format('woff');
font-weight: $weight;
font-style: normal;
}
@font-face {
font-family: 'Fira Sans';
src: url('/static/fonts/FiraSans/firasans-#{$type}italic.woff2') format('woff2'),
url('/static/fonts/FiraSans/firasans-#{$type}italic.woff') format('woff');
font-weight: $weight;
font-style: italic;
}
}
@include firasans-font('thin', 100);
@include firasans-font('extralight', 200);
@include firasans-font('light', 300);
@include firasans-font('regular', 400);
@include firasans-font('medium', 500);
@include firasans-font('semibold', 600);
@include firasans-font('bold', 700);
@include firasans-font('extrabold', 800);
@include firasans-font('black', 900);