style: Setup webfonts

This commit is contained in:
Tixie 2019-03-09 02:32:12 +01:00
parent 161be77909
commit fbe2c3bce9
6 changed files with 23 additions and 2 deletions

BIN
public/fonts/Roboto-bold.woff Executable file

Binary file not shown.

BIN
public/fonts/Roboto.woff Executable file

Binary file not shown.

View file

@ -7,7 +7,7 @@
<script> <script>
export default { export default {
name: 'souvenir', name: 'souvenir'
} }
</script> </script>

View file

@ -1,3 +1,21 @@
/* ----------------------------------------------------------- */ /* ----------------------------------------------------------- */
/* == custom fonts */ /* == custom fonts */
/* ----------------------------------------------------------- */ /* ----------------------------------------------------------- */
@font-face {
font-weight: normal;
font-style: normal;
font-family: "Roboto";
src: url("/fonts/Roboto.woff") format("woff"), local("Roboto");
font-display: swap;
}
@font-face {
font-weight: bold;
font-style: normal;
font-family: "Roboto";
src: url("/fonts/Roboto-bold.woff") format("woff"), local("Roboto");
font-display: swap;
}

View file

@ -6,6 +6,9 @@ body {
background: var(--color-tertiary) url("/img/dotgrid.png"); background: var(--color-tertiary) url("/img/dotgrid.png");
color: var(--color-light-text); color: var(--color-light-text);
font-family: var(--fontstack); font-family: var(--fontstack);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
} }
.container { .container {

View file

@ -12,7 +12,7 @@
:root { :root {
--base-font: 14; /* px value (without unit), will be converted in em */ --base-font: 14; /* px value (without unit), will be converted in em */
--line-height: 1.5; --line-height: 1.5;
--fontstack: "Helvetica Neue", Helvetica, Arial, sans-serif; --fontstack: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
} }
/* responsive /* responsive