Skip to content

Commit 94dc83a

Browse files
committed
fix font family
1 parent c195002 commit 94dc83a

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

apps/codingcatdev/src/app.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@
8686
sizes="16x16"
8787
href="%sveltekit.assets%/icons/favicon-16x16.png"
8888
/>
89+
<link
90+
rel="preload"
91+
href="%sveltekit.assets%/fonts/Nunito-VariableFont_wght.ttf"
92+
as="font"
93+
type="font/ttf"
94+
crossorigin
95+
/>
8996

9097
%sveltekit.head%
9198
</head>

apps/codingcatdev/src/styles/app.css

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
@font-face {
2+
font-family: 'Nunito';
3+
src: url('/fonts/Nunito-VariableFont_wght.ttf');
4+
font-display: swap;
5+
}
6+
17
::-webkit-scrollbar {
28
@apply h-2;
39
}
@@ -43,15 +49,6 @@ h6:hover .permalink {
4349
@apply visible w-auto;
4450
}
4551

46-
/* https://fonts.google.com/specimen/Quicksand?query=Quicksand */
47-
/* @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap'); */
48-
49-
@font-face {
50-
font-family: 'Quicksand';
51-
src: url('/fonts/Quicksand-VariableFont_wght.ttf');
52-
font-display: swap;
53-
}
54-
5552
[data-theme='codingcatdev'] h1,
5653
[data-theme='codingcatdev'] h2,
5754
[data-theme='codingcatdev'] h3,
271 KB
Binary file not shown.

apps/codingcatdev/theme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { CustomThemeConfig } from '@skeletonlabs/tw-plugin';
33
export const codingCatDevTheme: CustomThemeConfig = {
44
name: 'codingcatdev',
55
properties: {
6-
'--theme-font-family-base': "'Quicksand', sans-serif",
7-
'--theme-font-family-heading': "'Quicksand', sans-serif",
6+
'--theme-font-family-base': "'Nunito', sans-serif",
7+
'--theme-font-family-heading': "'Nunito', sans-serif",
88
'--theme-font-color-base': 'var(--color-surface-900)',
99
'--theme-font-color-dark': 'var(--color-tertiary-50)',
1010
'--theme-rounded-base': '12px',

0 commit comments

Comments
 (0)