Skip to content

Commit

Permalink
ui: Add kavoon font to tailwind.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shivansh-bhatnagar18 authored and kuv2707 committed Jun 8, 2024
1 parent b2f5d81 commit 31e563f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Kavoon&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
function Home() {
return (
<>
<div>Home Page</div>
<div className="font-kavoon">Home Page</div>
<Link to="/play">Play</Link>
</>
);
Expand Down
6 changes: 5 additions & 1 deletion frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ export default {
'./src/**/*.{tsx,ts}',
],
theme: {
extend: {},
extend: {
fontFamily: {
kavoon: ['Kavoon', 'serif'],
},
},
},
plugins: [],
}
Expand Down

0 comments on commit 31e563f

Please sign in to comment.