Add Medium font variant and update font weights globally

This commit is contained in:
2021-10-08 00:31:16 +02:00
parent a7023c3a0f
commit 4100cd3013
13 changed files with 24 additions and 18 deletions

View File

@@ -1,6 +1,5 @@
<script lang="ts"> <script lang="ts">
export let variant: string = undefined export let variant: string = undefined
console.log(variant)
</script> </script>
<h1 class="site-title {variant ? `site-title--${variant}` : ''}"> <h1 class="site-title {variant ? `site-title--${variant}` : ''}">

View File

@@ -1,5 +1,6 @@
html { html {
font: #{$base-font-size}/1.2 $font-sans; font: #{$base-font-size}/1.2 $font-sans;
font-weight: 300;
color: #fff; color: #fff;
min-width: 320px; min-width: 320px;
word-break: normal; word-break: normal;
@@ -17,7 +18,7 @@ body {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
strong { strong {
font-weight: 700; font-weight: 600;
} }
em { em {
font-style: normal; font-style: normal;

View File

@@ -1,7 +1,8 @@
/* Fonts list /* Fonts list
========================================================================== */ ========================================================================== */
@include font-face("Garnett", "G-Light", 300); @include font-face("Garnett", "G-Light", 200);
@include font-face("Garnett", "G-Regular", 400); @include font-face("Garnett", "G-Regular", 300);
@include font-face("Garnett", "G-Medium", 400);
@include font-face("Garnett", "G-Semibold", 500); @include font-face("Garnett", "G-Semibold", 500);
@include font-face("Magnolia", "M-Extralight", 200); @include font-face("Magnolia", "M-Extralight", 200);
@include font-face("Magnolia", "M-Light", 300); @include font-face("Magnolia", "M-Light", 300);

View File

@@ -67,7 +67,7 @@
.text-medium { .text-medium {
font-size: rem(20px); font-size: rem(20px);
font-family: $font-sans; font-family: $font-sans;
font-weight: 300; font-weight: 200;
line-height: 1.4; line-height: 1.4;
@include bp (sm) { @include bp (sm) {
@@ -102,5 +102,5 @@
line-height: 1.4; line-height: 1.4;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 1px; letter-spacing: 1px;
font-weight: 500; font-weight: 400;
} }

View File

@@ -39,9 +39,10 @@
} }
span { span {
display: block; display: block;
margin-left: 24px;
color: $color-secondary-light; color: $color-secondary-light;
text-align: left; text-align: left;
margin-left: 24px; font-weight: 300;
@include bp (sm) { @include bp (sm) {
margin-left: 0; margin-left: 0;

View File

@@ -1,17 +1,17 @@
.discover { .discover {
padding: 0 20px;
font-family: $font-sans; font-family: $font-sans;
font-size: rem(28px); font-size: rem(28px);
color: $color-tertiary; font-weight: 200;
font-weight: 300;
line-height: 1.5; line-height: 1.5;
padding: 0 20px; color: $color-tertiary;
@include bp (sm) { @include bp (sm) {
font-size: rem(32px); font-size: rem(32px);
} }
strong { strong {
font-weight: 300;
color: $color-secondary; color: $color-secondary;
font-weight: 200;
} }
} }

View File

@@ -62,6 +62,7 @@
text-decoration: none; text-decoration: none;
font-size: rem(16px); font-size: rem(16px);
line-height: 1.3; line-height: 1.3;
font-weight: 300;
} }
svg { svg {
margin-right: 16px; margin-right: 16px;

View File

@@ -24,9 +24,10 @@
} }
} }
p { p {
max-width: 480px;
margin-bottom: 32px; margin-bottom: 32px;
color: $color-text; color: $color-text;
font-weight: 300; font-weight: 200;
@include bp (sm) { @include bp (sm) {
margin-bottom: 40px; margin-bottom: 40px;
@@ -50,9 +51,9 @@
input { input {
display: block; display: block;
width: 100%; width: 100%;
font-family: $font-sans;
font-weight: 400;
font-size: rem(18px); font-size: rem(18px);
font-family: $font-sans;
font-weight: 300;
color: #333; color: #333;
background: none; background: none;
border: none; border: none;
@@ -113,6 +114,8 @@
@include bp (sm) { @include bp (sm) {
margin-left: 12px; margin-left: 12px;
padding-bottom: 0;
font-size: rem(16px);
} }
} }
p { p {

View File

@@ -61,7 +61,7 @@
} }
p { p {
font-weight: 300; font-weight: 200;
margin-bottom: 20px; margin-bottom: 20px;
@include bp (sm) { @include bp (sm) {

View File

@@ -17,7 +17,7 @@
p { p {
max-width: 320px; max-width: 320px;
margin: 50px auto 0; margin: 50px auto 0;
font-weight: 300; font-weight: 200;
@include bp (sm) { @include bp (sm) {
margin: 72px auto 0; margin: 72px auto 0;

View File

@@ -160,7 +160,7 @@
position: relative; position: relative;
display: inline-block; display: inline-block;
font-size: rem(160px); font-size: rem(160px);
color: rgba($color-text, 0.15); color: rgba($color-text, 0.2);
font-family: $font-serif; font-family: $font-serif;
font-weight: 200; font-weight: 200;
line-height: 1; line-height: 1;
@@ -191,7 +191,7 @@
color: $color-gray; color: $color-gray;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.1em; letter-spacing: 0.1em;
font-weight: 300; font-weight: 400;
font-size: rem(14px); font-size: rem(14px);
} }
} }

BIN
static/fonts/G-Medium.woff Normal file

Binary file not shown.

BIN
static/fonts/G-Medium.woff2 Normal file

Binary file not shown.