Skip to content

Commit

Permalink
add fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
hariscs committed Mar 4, 2024
1 parent 44f8880 commit 6ccea68
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
15 changes: 11 additions & 4 deletions apps/frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import "./styles.css";
import { League_Spartan } from 'next/font/google'

import './styles.css'

const league_spartan = League_Spartan({
subsets: ['latin'],
display: 'swap',
})

export default function RootLayout({
children,
}: {
children: React.ReactNode;
children: React.ReactNode
}): JSX.Element {
return (
<html lang="en">
<html className={league_spartan.className} lang='en'>
<body>{children}</body>
</html>
);
)
}
3 changes: 3 additions & 0 deletions apps/frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module.exports = {
warning: 'hsl(34, 97%, 64%)',
danger: 'hsl(0, 100%, 63%)',
},
fontFamily: {
sans: ['var(--font-league_spartan)'],
},
},
},
plugins: [],
Expand Down

0 comments on commit 6ccea68

Please sign in to comment.