Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update font stack according to UX spec #241

Merged
merged 2 commits into from
Oct 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $button__background--loading: rgba($theme-light-border, .4);
color: $base-dark;
cursor: pointer;
display: inline-block;
font-family: $heading-font-stack;
font-family: $primary-font-stack;
font-size: .875rem;
letter-spacing: .015rem;
line-height: 1rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
color: $base-light;
cursor: pointer;
display: block;
font-family: $heading-font-stack;
font-family: $primary-font-stack;
font-size: .8rem;
line-height: 1rem;
outline-offset: -2px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
background: transparent;
border: 0;
flex: 1;
font-family: $base-font-stack;
font-family: $primary-font-stack;
font-size: 0.875rem;
font-weight: 300;
letter-spacing: 0.02rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
display: flex;
flex-direction: column;
flex-grow: 1;
font-family: $secondary-font-stack;
height: 100%;
overflow-y: auto;
padding: 2rem 0;
Expand Down
2 changes: 1 addition & 1 deletion projects/go-lib/src/styles/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $input--disabled-background: rgba($base-dark-secondary, .4);
.go-form__label {
color: $theme-light-color;
display: block;
font-family: $heading-font-stack;
font-family: $primary-font-stack;
font-size: .875rem;
font-weight: $weight-bold;
letter-spacing: 1pt;
Expand Down
19 changes: 10 additions & 9 deletions projects/go-lib/src/styles/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
body {
font-family: $base-font-stack;
font-family: $primary-font-stack;
font-weight: $weight-light;
}

.go-heading-1 {
font-family: $heading-font-stack;
font-family: $primary-font-stack;
font-size: 6rem;
font-weight: $weight-light;
font-weight: $weight-regular;
letter-spacing: -1.5pt;
margin-bottom: $column-gutter--quarter;
}

.go-heading-2 {
font-family: $heading-font-stack;
font-family: $primary-font-stack;
font-size: 3.75rem;
font-weight: $weight-light;
font-weight: $weight-regular;
letter-spacing: -.5pt;
margin-bottom: $column-gutter--quarter;
}

.go-heading-3 {
font-family: $heading-font-stack;
font-family: $primary-font-stack;
font-size: 3rem;
font-weight: $weight-regular;
letter-spacing: 0;
Expand All @@ -28,7 +29,7 @@ body {
}

.go-heading-4 {
font-family: $heading-font-stack;
font-family: $primary-font-stack;
font-size: 2.125rem;
font-weight: $weight-regular;
letter-spacing: .25pt;
Expand All @@ -37,7 +38,7 @@ body {
}

.go-heading-5 {
font-family: $heading-font-stack;
font-family: $primary-font-stack;
font-size: 1.5rem;
font-weight: $weight-bold;
letter-spacing: 0;
Expand All @@ -46,7 +47,7 @@ body {
}

.go-heading-6 {
font-family: $heading-font-stack;
font-family: $primary-font-stack;
font-size: .875rem;
font-weight: $weight-bold;
letter-spacing: 1pt;
Expand Down
5 changes: 2 additions & 3 deletions projects/go-lib/src/styles/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ $weight-light: 300;
$weight-regular: 400;
$weight-bold: 700;

$base-font-stack: 'Roboto', 'Lato', 'Helvetica', 'Arial', sans-serif;
$heading-font-stack: 'Roboto', 'Bryant', 'Helvetica', 'Arial', sans-serif;

$primary-font-stack: 'Roboto', 'Lato', 'Helvetica', 'Arial', sans-serif;
$secondary-font-stack: 'Nunito', 'Helvetica', 'Arial', sans-serif;
// Colors
// ----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion projects/go-style-guide/src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ a {
body {
background: $theme-light-app-bg;
color: $theme-light-color;
font-family: $base-font-stack;
font-family: $primary-font-stack;
font-weight: 300;
}

Expand Down
1 change: 1 addition & 0 deletions projects/go-style-guide/src/styles/_settings.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Fonts
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,700');
@import url('https://fonts.googleapis.com/css?family=Nunito:300,400,700');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');

Expand Down
1 change: 1 addition & 0 deletions projects/go-tester/src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* You can add global styles to this file, and also import other style files */
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,700');
@import url('https://fonts.googleapis.com/css?family=Nunito:300,400,700');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* http://meyerweb.com/eric/tools/css/reset/
Expand Down