Skip to content

Commit

Permalink
feat: added updated fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
fkakatie committed May 24, 2024
1 parent 6b99daa commit 4be1344
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 19 deletions.
Binary file added fonts/roboto-condensed-bold.woff2
Binary file not shown.
Binary file added fonts/roboto-medium.woff2
Binary file not shown.
18 changes: 18 additions & 0 deletions styles/fonts.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
/* stylelint-disable max-line-length */
@font-face {
font-family: roboto-condensed;
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../fonts/roboto-condensed-bold.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: roboto;
font-style: normal;
Expand All @@ -8,6 +17,15 @@
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: roboto;
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('../fonts/roboto-medium.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: roboto;
font-style: normal;
Expand Down
50 changes: 31 additions & 19 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,41 +20,53 @@
--text-color: black;

/* fonts */
--body-font-family: roboto, roboto-fallback;
--heading-font-family: var(--body-font-family);
--body-font-family: roboto, roboto-fallback, sans-serif;
--heading-font-family: roboto-condensed, roboto-condensed-fallback, sans-serif;

/* body sizes */
--body-font-size-m: 22px;
--body-font-size-s: 18px;
--body-font-size-xs: 16px;
--body-font-size-m: 19px;
--body-font-size-s: 17px;
--body-font-size-xs: 15px;

/* heading sizes */
--heading-font-size-xxl: 48px;
--heading-font-size-xl: 40px;
--heading-font-size-l: 32px;
--heading-font-size-m: 24px;
--heading-font-size-s: 20px;
--heading-font-size-xs: 18px;
--heading-font-size-xxl: 55px;
--heading-font-size-xl: 44px;
--heading-font-size-l: 34px;
--heading-font-size-m: 27px;
--heading-font-size-s: 24px;
--heading-font-size-xs: 22px;

/* nav height */
--nav-height: 64px;
}

/* fallback fonts */
@font-face {
font-family: roboto-condensed-fallback;
size-adjust: 88.82%;
src: local('Arial');
}

@font-face {
font-family: roboto-fallback;
size-adjust: 100.06%;
ascent-override: 95%;
size-adjust: 99.529%;
src: local('Arial');
}

@media (width >= 900px) {
:root {
--heading-font-size-xxl: 60px;
--heading-font-size-xl: 48px;
--heading-font-size-l: 36px;
--heading-font-size-m: 30px;
--heading-font-size-s: 24px;
--heading-font-size-xs: 22px;
/* body sizes */
--body-font-size-m: 16px;
--body-font-size-s: 14px;
--body-font-size-xs: 12px;

/* heading sizes */
--heading-font-size-xxl: 45px;
--heading-font-size-xl: 36px;
--heading-font-size-l: 28px;
--heading-font-size-m: 22px;
--heading-font-size-s: 20px;
--heading-font-size-xs: 18px;
}
}

Expand Down

0 comments on commit 4be1344

Please sign in to comment.