Skip to content

Commit 87c565b

Browse files
authored
feature (#190): update typography (#191)
1 parent 2d04b0b commit 87c565b

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

src/.vuepress/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ module.exports = {
159159
'link',
160160
{
161161
href:
162-
'https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono&display=swap',
162+
'https://fonts.googleapis.com/css?family=Inter:300,400,600|Open+Sans:400,600;display=swap',
163163
rel: 'stylesheet'
164164
}
165165
],

src/.vuepress/theme/components/Home.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ export default {
143143
<style lang="scss">
144144
@import '@theme/styles/_settings.scss';
145145
146+
.home {
147+
font-family: $fontHome;
148+
}
149+
146150
.hero {
147151
padding: calc(100px + 3rem) 40px 30px; // add $betaBannerHeight
148152

src/.vuepress/theme/styles/_settings.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ $info: #1c90f3;
1212
$MQNarrow: 959px;
1313
$MQMobile: 719px;
1414
$MQMobileNarrow: 419px;
15+
16+
$fontHome: 'Open Sans', 'Inter', Roboto, Oxygen, Fira Sans, Helvetica Neue,
17+
sans-serif;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
$contentClass = '.theme-default-content'
2-
$fontPrimary = 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif
2+
$fontPrimary = 'Inter', Roboto, Oxygen, Fira Sans,Helvetica Neue, sans-serif;
33
$betaBannerHeight = 3rem

0 commit comments

Comments
 (0)