From 6508597a3e8cf7edc6343da1e63c4128ff340748 Mon Sep 17 00:00:00 2001 From: Florian Sommariva <1926041+dtrucs@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:25:16 +0100 Subject: [PATCH] Define Source Sans 3 as main font --- frontend/src/components/pages/_app/Root.tsx | 6 +++--- frontend/tailwind.config.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/pages/_app/Root.tsx b/frontend/src/components/pages/_app/Root.tsx index cd472aad0..e5cd5a420 100644 --- a/frontend/src/components/pages/_app/Root.tsx +++ b/frontend/src/components/pages/_app/Root.tsx @@ -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'; @@ -17,7 +17,7 @@ const { publicRuntimeConfig: { locales }, } = getNextConfig(); -const assistant = Assistant({ +const font = Source_Sans_3({ weight: ['400', '600', '700'], subsets: ['latin'], display: 'swap', @@ -64,7 +64,7 @@ export const Root: React.FC = props => { diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 96f0d4568..d1cc35a6b 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -9,7 +9,7 @@ module.exports = { }, fontFamily: { main: [ - 'var(--font-assistant)', + 'var(--font-main)', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI',