Skip to content

Commit de91bf9

Browse files
committed
chore: use good brush font
1 parent c4dafc1 commit de91bf9

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

apps/www/app/fonts.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* MIT License
3+
*
4+
* Copyright (c) 2024, Brion Mario
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
24+
25+
import {Space_Grotesk, Inter} from 'next/font/google';
26+
import {NextFont} from 'next/dist/compiled/@next/font';
27+
import localFont from 'next/font/local';
28+
29+
export const spaceGrotesk: NextFont = Space_Grotesk({subsets: ['latin'], weight: ['400', '500']});
30+
export const inter: NextFont = Inter({subsets: ['latin']});
31+
export const goodBrush: NextFont = localFont({src: '../public/fonts/Good Brush.ttf', variable: '--font-good-brush'});

apps/www/app/layout.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,11 @@
2323
*/
2424

2525
import type {Metadata} from 'next';
26-
import {Space_Grotesk, Inter} from 'next/font/google';
2726
import {ReactElement} from 'react';
28-
import {NextFont} from 'next/dist/compiled/@next/font';
2927
import ThemeProvider from '@/components/ThemeProvider';
3028
import './globals.scss';
3129
import './custom.scss';
32-
33-
const spaceGrotesk: NextFont = Space_Grotesk({subsets: ['latin'], weight: ['400', '500']});
34-
const inter: NextFont = Inter({subsets: ['latin']});
30+
import {inter, spaceGrotesk} from './fonts';
3531

3632
export const metadata: Metadata = {
3733
title: 'Create Next App',
386 KB
Binary file not shown.

apps/www/tailwind.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const config: Config = {
8080
fontFamily: {
8181
sans: ['Inter', ...defaultTheme.fontFamily.sans],
8282
'space-grotesk': ['Space Grotesk', 'monospace'],
83-
'good-brush': ['Good Brush'],
83+
'good-brush': ['var(--font-good-brush)'],
8484
mono: [
8585
'Menlo',
8686
'Monaco',

0 commit comments

Comments
 (0)