Themes can now include font files

Updated example env
New fonts added to default theme
This commit is contained in:
Michał Gdula 2023-01-06 23:46:12 +00:00
parent a7e79ab5a5
commit 463c5ecd03
11 changed files with 117 additions and 24 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -18,7 +18,7 @@ $font-body: "Mona-Sans", sans-serif;
@font-face {
font-family: "Mona-Sans";
src: url("f../onts/Mona-Sans.woff2") format("woff2 supports variations"),
src: url("../fonts/Mona-Sans.woff2") format("woff2 supports variations"),
url("../fonts/Mona-Sans.woff2") format("woff2-variations");
font-weight: 200 900;
font-stretch: 75% 125%;
@ -33,6 +33,24 @@ $font-body: "Mona-Sans", sans-serif;
font-display: swap;
}
@font-face {
font-family: 'Work Sans';
src: url('fonts/worksans-regular.woff2');
font-weight: 400;
}
@font-face {
font-family: 'Work Sans';
src: url('fonts/worksans-bold.woff2');
font-weight: 600;
}
@font-face {
font-family: 'Work Sans';
src: url('fonts/worksans-black.woff2');
font-weight: 900;
}
@import 'buttons/btn';
html, body {