Skip to content

Commit e9c5228

Browse files
committed
feat: No fonts by default.
1 parent c5faaae commit e9c5228

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

src/css/base/structure.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ main {
66
@apply flex-auto;
77
}
88

9-
footer {
10-
@apply bg-gray-100;
11-
}
12-
139
body {
14-
@apply flex min-h-full flex-col font-roboto antialiased;
10+
@apply flex min-h-full flex-col antialiased;
1511

1612
&.no-fout {
1713
@apply invisible;

src/js/app.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Scripts } from '@/js/types/types';
22
import { loadScripts } from '@/js/helpers/scriptLoader';
3-
import * as WebFont from 'webfontloader';
4-
import { WebFontInterface } from '@/js/types/types';
3+
// import * as WebFont from 'webfontloader';
4+
// import { WebFontInterface } from '@/js/types/types';
55

66
// Import CSS
77
import '@/css/app.css';
@@ -10,18 +10,18 @@ const init = () => {
1010
// JavaScript to be fired on all pages
1111

1212
// Config for WebFontLoader
13-
const fontConfig: WebFontInterface = {
14-
classes: false,
15-
events: false,
16-
google: {
17-
families: ['Roboto:300,400,500,700'],
18-
display: 'swap',
19-
version: 1.0,
20-
},
21-
};
13+
// const fontConfig: WebFontInterface = {
14+
// classes: false,
15+
// events: false,
16+
// google: {
17+
// families: ['Roboto:300,400,500,700'],
18+
// display: 'swap',
19+
// version: 1.0,
20+
// },
21+
// };
2222

23-
// Load Fonts
24-
WebFont.load(fontConfig);
23+
// // Load Fonts
24+
// WebFont.load(fontConfig);
2525

2626
// Define the selectors and src for dynamic imports
2727
const scripts: Scripts = [

src/js/types/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
export interface WebFontInterface {
33
classes: boolean;
44
events: boolean;
5-
google: {
5+
google?: {
66
families: string[];
77
display: string;
88
version: number;
99
};
10+
typekit?: {
11+
id: string;
12+
};
1013
}
1114

1215
export interface Scripts extends Array<Script> {}

tailwind.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
xl: '1366px',
2323
},
2424
fontFamily: {
25-
roboto: ['Roboto'],
25+
// roboto: ['Roboto'],
2626
},
2727
},
2828
plugins: [

0 commit comments

Comments
 (0)