Skip to content

Commit

Permalink
feat: font change
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevo David committed Sep 10, 2024
1 parent db2732e commit 72e8ef8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
7 changes: 5 additions & 2 deletions apps/frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ export const dynamic = 'force-dynamic';
import './global.scss';
import 'react-tooltip/dist/react-tooltip.css';
import '@copilotkit/react-ui/styles.css';

import LayoutContext from '@gitroom/frontend/components/layout/layout.context';
import { ReactNode } from 'react';
import { Chakra_Petch } from 'next/font/google';
import { isGeneral } from '@gitroom/react/helpers/is.general';
import PlausibleProvider from 'next-plausible';
import clsx from 'clsx';
import "@fontsource/chakra-petch";

const chakra = Chakra_Petch({ weight: '400', subsets: ['latin'] });

export default async function AppLayout({ children }: { children: ReactNode }) {
return (
Expand All @@ -20,7 +23,7 @@ export default async function AppLayout({ children }: { children: ReactNode }) {
sizes="any"
/>
</head>
<body className={clsx('chakra-petch', 'text-primary dark')}>
<body className={clsx(chakra.className, 'text-primary dark')}>
<PlausibleProvider domain={isGeneral() ? "postiz.com" : "gitroom.com"}>
<LayoutContext>{children}</LayoutContext>
</PlausibleProvider>
Expand Down
7 changes: 0 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"@copilotkit/react-textarea": "1.1.0",
"@copilotkit/react-ui": "1.1.0",
"@copilotkit/runtime": "1.1.0",
"@fontsource/chakra-petch": "^5.0.22",
"@hookform/resolvers": "^3.3.4",
"@mantine/core": "^5.10.5",
"@mantine/dates": "^5.10.5",
Expand Down

0 comments on commit 72e8ef8

Please sign in to comment.