Skip to content

Commit

Permalink
Added font family and heading styles (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
kelynch authored Oct 29, 2024
1 parent 52a122f commit 596021a
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 7 deletions.
27 changes: 27 additions & 0 deletions app/assets/stylesheets/_typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
}

h1 {
font-size: 2.5rem;
}

h2 {
font-size: 2.0rem;
}

h3 {
font-size: 1.75rem;
}

h4 {
font-size: 1.5rem;
}

h5 {
font-size: 1.25rem;
}

h6 {
font-size: 1rem;
}
7 changes: 6 additions & 1 deletion app/assets/stylesheets/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url(https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap);

$princeton-orange: #E77500;
$princeton-orange-80: #EC9133;
$princeton-orange-20: #FAE3CC;
Expand All @@ -11,6 +13,7 @@ $gray-60: #717171;
$gray-20: #D0D0D0;
$gray-10: #EEEEEE;
$white: #FFFFFF;
$black: #000000;

$green-dark: #006450;
$red-dark: #B00002;
Expand All @@ -21,4 +24,6 @@ $light-blue: #BED8E2;
$status-success: #DDEDE6;
$status-error: #F3D9D9;
$status-warning: #FFF6DF;
$status-info: #E6EEF8;
$status-info: #E6EEF8;

$libre-franklin: "Libre Franklin", sans-serif;
18 changes: 12 additions & 6 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@
* It is generally better to create a new file per style scope.
*/

@import "settings";
@import "bootstrap";

@import "alternate_mediaflux";
@import "banner";
@import "components/mediaflux_status";
@import "emulator";
@import "alternate_mediaflux";
@import "header";
@import "footer";
@import "components/mediaflux_status";
@import "variables";
@import "header";
@import "settings";
@import "styles_preview";
@import "typography";
@import "variables";

@import "bootstrap";
body {
font-family: $libre-franklin;
color: $black;
}

9 changes: 9 additions & 0 deletions app/views/welcome/styles_preview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

<p>This page shows the styles that have been implemented for this site's look and feel.</p>

<h1>Heading Level 1</h1>
<h2>Heading Level 2</h2>
<h3>Heading Level 3</h3>
<h4>Heading Level 4</h4>
<h5>Heading Level 5</h5>
<h6>Heading Level 6</h6>

<h2>Colors</h2>

<div class="colors-section">
Expand Down Expand Up @@ -40,3 +47,5 @@





0 comments on commit 596021a

Please sign in to comment.