feat: change default font to Open Sans

This commit is contained in:
thecodrr
2021-07-17 00:12:59 +05:00
parent 9245b545ee
commit 0094b132bc
4 changed files with 14 additions and 5 deletions

View File

@@ -97,6 +97,12 @@
background-color: #f7f7f7;
}
</style>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>

View File

@@ -20,8 +20,8 @@ body,
}
* {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}
@keyframes fadeUp {

View File

@@ -5,13 +5,14 @@ class FontFactory {
return {
fontSizes: new FontSizeFactory(scale),
fontWeights: {
normal: 400,
body: 400,
heading: 700,
bold: 700,
bold: 600,
},
fonts: {
body: `-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;`,
heading: `-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;`,
body: `Open Sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Oxygen-Sans,Ubuntu,Cantarell,sans-serif;`,
heading: `Open Sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Oxygen-Sans,Ubuntu,Cantarell,sans-serif;`,
},
};
}

View File

@@ -38,6 +38,7 @@ class Title {
return {
variant: "text.heading",
fontSize: "title",
fontWeight: "bold",
};
}
}
@@ -46,6 +47,7 @@ class Subtitle {
return {
variant: "text.heading",
fontSize: "subtitle",
fontWeight: "bold",
};
}
}