Skip to content

Commit

Permalink
Define Source Sans 3 as main font
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Dec 11, 2024
1 parent 6044093 commit a7c4885
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/pages/_app/Root.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import getNextConfig from 'next/config';
import Head from 'next/head';
import { Assistant } from 'next/font/google';
import { Source_Sans_3 } from 'next/font/google';
import { IntlProvider } from 'react-intl';
import { getGlobalConfig } from 'modules/utils/api.config';
import { getDefaultLanguage } from 'modules/header/utills';
Expand All @@ -17,7 +17,7 @@ const {
publicRuntimeConfig: { locales },
} = getNextConfig();

const assistant = Assistant({
const font = Source_Sans_3({
weight: ['400', '600', '700'],
subsets: ['latin'],
display: 'swap',
Expand Down Expand Up @@ -64,7 +64,7 @@ export const Root: React.FC<React.PropsWithChildren> = props => {

<style>{`
:root {
--font-assistant: ${assistant.style.fontFamily};
--font-main: ${font.style.fontFamily};
}
`}</style>
</Head>
Expand Down
2 changes: 1 addition & 1 deletion frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
},
fontFamily: {
main: [
'var(--font-assistant)',
'var(--font-main)',
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
Expand Down

0 comments on commit a7c4885

Please sign in to comment.