Skip to content

Commit

Permalink
Update heading font from Poppins to Aeonik Pro
Browse files Browse the repository at this point in the history
  • Loading branch information
stnguyen90 committed Sep 18, 2023
1 parent 9b4bcb8 commit cdff78c
Show file tree
Hide file tree
Showing 18 changed files with 89 additions and 35 deletions.
24 changes: 0 additions & 24 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,6 @@
as="font"
type="font/woff2"
crossorigin />
<link
rel="preload"
href="/fonts/poppins/poppins-v19-latin-500.woff2"
as="font"
type="font/woff2"
crossorigin />
<link
rel="preload"
href="/fonts/poppins/poppins-v19-latin-600.woff2"
as="font"
type="font/woff2"
crossorigin />
<link
rel="preload"
href="/fonts/poppins/poppins-v19-latin-700.woff2"
as="font"
type="font/woff2"
crossorigin />
<link
rel="preload"
href="/fonts/source-code-pro/source-code-pro-v20-latin-regular.woff2"
as="font"
type="font/woff2"
crossorigin />
<link rel="preload" as="style" type="text/css" href="/fonts/main.css" />
<link rel="stylesheet" href="/fonts/main.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand Down
4 changes: 2 additions & 2 deletions src/lib/layout/unauthenticated.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
position: relative;
p {
font-family: 'Poppins';
font-family: 'Aeonik Pro';
font-size: clamp(3.5rem, 7vw, 5.25rem);
font-weight: 700;
}
Expand Down Expand Up @@ -251,7 +251,7 @@
.mobile-beta {
text-align: center;
align-self: center;
font-family: 'Poppins';
font-family: 'Aeonik Pro';
font-size: 1.125rem;
font-weight: 700;
text-transform: uppercase;
Expand Down
4 changes: 4 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,8 @@
mask-composite: exclude;
pointer-events: none;
}
:root {
--heading-font: "Aeonik Pro", arial, sans-serif;
}
</style>
Binary file added static/fonts/aeonik-pro/AeonikPro-Air.woff2
Binary file not shown.
Binary file added static/fonts/aeonik-pro/AeonikPro-AirItalic.woff2
Binary file not shown.
Binary file added static/fonts/aeonik-pro/AeonikPro-Black.woff2
Binary file not shown.
Binary file not shown.
Binary file added static/fonts/aeonik-pro/AeonikPro-Bold.woff2
Binary file not shown.
Binary file not shown.
Binary file added static/fonts/aeonik-pro/AeonikPro-Light.woff2
Binary file not shown.
Binary file not shown.
Binary file added static/fonts/aeonik-pro/AeonikPro-Medium.woff2
Binary file not shown.
Binary file not shown.
Binary file added static/fonts/aeonik-pro/AeonikPro-Regular.woff2
Binary file not shown.
Binary file not shown.
Binary file added static/fonts/aeonik-pro/AeonikPro-Thin.woff2
Binary file not shown.
Binary file not shown.
92 changes: 83 additions & 9 deletions static/fonts/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,99 @@
}

@font-face {
font-family: 'Poppins';
font-family: 'Aeonik Pro';
font-style: normal;
font-weight: 100;
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-Air.woff2') format('woff2');
}

@font-face {
font-family: 'Aeonik Pro';
font-style: italic;
font-weight: 100;
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-AirItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Aeonik Pro';
font-style: normal;
font-weight: 200;
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-Thin.woff2') format('woff2');
}

@font-face {
font-family: 'Aeonik Pro';
font-style: italic;
font-weight: 200;
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-ThinItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Aeonik Pro';
font-style: normal;
font-weight: 300;
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-Light.woff2') format('woff2');
}

@font-face {
font-family: 'Aeonik Pro';
font-style: italic;
font-weight: 300;
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-LightItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Aeonik Pro';
font-style: normal;
font-weight: 400;
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-Regular.woff2') format('woff2');
}

@font-face {
font-family: 'Aeonik Pro';
font-style: italic;
font-weight: 400;
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-RegularItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Aeonik Pro';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('poppins/poppins-v19-latin-500.woff2') format('woff2');
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-Medium.woff2') format('woff2');
}

@font-face {
font-family: 'Aeonik Pro';
font-style: italic;
font-weight: 500;
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-MediumItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Poppins';
font-family: 'Aeonik Pro';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('poppins/poppins-v19-latin-600.woff2') format('woff2');
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-Bold.woff2') format('woff2');
}

@font-face {
font-family: 'Aeonik Pro';
font-style: italic;
font-weight: 600;
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-BoldItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Poppins';
font-family: 'Aeonik Pro';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('poppins/poppins-v19-latin-700.woff2') format('woff2');
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-Black.woff2') format('woff2');
}

@font-face {
font-family: 'Aeonik Pro';
font-style: italic;
font-weight: 700;
src: local('Aeonik Pro'), local('AeonikPro'), url('aeonik-pro/AeonikPro-BlackItalic.woff2') format('woff2');
}

0 comments on commit cdff78c

Please sign in to comment.