Skip to content

Commit

Permalink
Change font!
Browse files Browse the repository at this point in the history
  • Loading branch information
itzCozi committed Mar 26, 2024
1 parent a5f4fb7 commit cb055a7
Show file tree
Hide file tree
Showing 23 changed files with 142 additions and 5 deletions.
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@
media="screen and (device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
href="/splash_screens/8.3__iPad_Mini_portrait.png">

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link href="//cdn.jsdelivr.net/npm/[email protected]/build/web/hack.css" rel="stylesheet" />

<script src="/config.js"></script>

Expand Down
5 changes: 4 additions & 1 deletion src/assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@

html,
body {
@apply bg-background-main font-open-sans text-type-text;
@apply bg-background-main font-hack text-type-text;
min-height: 100vh;
min-height: 100dvh;
font-size: 0.97em;
letter-spacing: 0.01em;
word-spacing: -0.12em;
}

html[data-full],
Expand Down
Binary file added src/assets/web-fonts/fonts/hack-bold-subset.woff
Binary file not shown.
Binary file not shown.
Binary file added src/assets/web-fonts/fonts/hack-bold.woff
Binary file not shown.
Binary file added src/assets/web-fonts/fonts/hack-bold.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/assets/web-fonts/fonts/hack-bolditalic.woff
Binary file not shown.
Binary file added src/assets/web-fonts/fonts/hack-bolditalic.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/assets/web-fonts/fonts/hack-italic.woff
Binary file not shown.
Binary file added src/assets/web-fonts/fonts/hack-italic.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/assets/web-fonts/fonts/hack-regular.woff
Binary file not shown.
Binary file added src/assets/web-fonts/fonts/hack-regular.woff2
Binary file not shown.
34 changes: 34 additions & 0 deletions src/assets/web-fonts/hack-subset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*!
* Hack typeface https://github.com/source-foundry/Hack
* License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md
*/
/* FONT PATHS
* -------------------------- */
@font-face {
font-family: 'Hack';
src: url('fonts/hack-regular-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-regular-subset.woff?sha=3114f1256') format('woff');
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-bold-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bold-subset.woff?sha=3114f1256') format('woff');
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-italic-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-italic-webfont.woff?sha=3114f1256') format('woff');
font-weight: 400;
font-style: italic;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-bolditalic-subset.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bolditalic-subset.woff?sha=3114f1256') format('woff');
font-weight: 700;
font-style: italic;
}

34 changes: 34 additions & 0 deletions src/assets/web-fonts/hack-subset.css.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*!
* Hack typeface https://github.com/source-foundry/Hack
* License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md
*/
/* FONT PATHS
* -------------------------- */
@font-face {
font-family: 'Hack';
src: url('fonts/hack-regular-subset.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-regular-subset.woff?sha={{ ink }}') format('woff');
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-bold-subset.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-bold-subset.woff?sha={{ ink }}') format('woff');
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-italic-subset.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-italic-webfont.woff?sha={{ ink }}') format('woff');
font-weight: 400;
font-style: italic;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-bolditalic-subset.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-bolditalic-subset.woff?sha={{ ink }}') format('woff');
font-weight: 700;
font-style: italic;
}

34 changes: 34 additions & 0 deletions src/assets/web-fonts/hack.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*!
* Hack typeface https://github.com/source-foundry/Hack
* License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md
*/
/* FONT PATHS
* -------------------------- */
@font-face {
font-family: 'Hack';
src: url('fonts/hack-regular.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-regular.woff?sha=3114f1256') format('woff');
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-bold.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bold.woff?sha=3114f1256') format('woff');
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-italic.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-italic.woff?sha=3114f1256') format('woff');
font-weight: 400;
font-style: italic;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-bolditalic.woff2?sha=3114f1256') format('woff2'), url('fonts/hack-bolditalic.woff?sha=3114f1256') format('woff');
font-weight: 700;
font-style: italic;
}

34 changes: 34 additions & 0 deletions src/assets/web-fonts/hack.css.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*!
* Hack typeface https://github.com/source-foundry/Hack
* License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md
*/
/* FONT PATHS
* -------------------------- */
@font-face {
font-family: 'Hack';
src: url('fonts/hack-regular.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-regular.woff?sha={{ ink }}') format('woff');
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-bold.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-bold.woff?sha={{ ink }}') format('woff');
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-italic.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-italic.woff?sha={{ ink }}') format('woff');
font-weight: 400;
font-style: italic;
}

@font-face {
font-family: 'Hack';
src: url('fonts/hack-bolditalic.woff2?sha={{ ink }}') format('woff2'), url('fonts/hack-bolditalic.woff?sha={{ ink }}') format('woff');
font-weight: 700;
font-style: italic;
}

2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const config: Config = {

/* fonts */
fontFamily: {
"open-sans": "'Open Sans'",
"hack": "'Hack'",
},

/* animations */
Expand Down

0 comments on commit cb055a7

Please sign in to comment.