From 110e062e563924f3b80230b6546637659b25d6bd Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 21 Mar 2025 16:33:21 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(frontend)=20use=20official=20Maria?= =?UTF-8?q?nne=20font?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated styling system to implement the official French font used across all La Suite products. This enhances brand consistency and improves the visual identity alignment with other government digital services. --- src/frontend/panda.config.ts | 1 + src/frontend/src/components/Avatar.tsx | 13 ++++++++++--- src/frontend/src/components/FeedbackBanner.tsx | 6 ++++-- .../features/home/components/IntroSlider.tsx | 9 +++++---- src/frontend/src/features/home/routes/Home.tsx | 17 ++++++++--------- src/frontend/src/primitives/A.tsx | 8 +++++++- 6 files changed, 35 insertions(+), 19 deletions(-) diff --git a/src/frontend/panda.config.ts b/src/frontend/panda.config.ts index f66633d5..80a0af93 100644 --- a/src/frontend/panda.config.ts +++ b/src/frontend/panda.config.ts @@ -223,6 +223,7 @@ const config: Config = { fonts: { sans: { value: [ + 'Marianne', 'Source Sans', 'Source Sans fallback', 'ui-sans-serif', diff --git a/src/frontend/src/components/Avatar.tsx b/src/frontend/src/components/Avatar.tsx index d007d293..3268b8d0 100644 --- a/src/frontend/src/components/Avatar.tsx +++ b/src/frontend/src/components/Avatar.tsx @@ -1,4 +1,4 @@ -import { cva, RecipeVariantProps } from '@/styled-system/css' +import { css, cva, RecipeVariantProps } from '@/styled-system/css' import React from 'react' const avatar = cva({ @@ -19,7 +19,8 @@ const avatar = cva({ list: { width: '32px', height: '32px', - fontSize: '1.25rem', + fontSize: '1.3rem', + lineHeight: '1rem', }, placeholder: { width: '100%', @@ -60,7 +61,13 @@ export const Avatar = ({ className={avatar({ context, notification })} {...props} > - {initial} + + {initial} + ) } diff --git a/src/frontend/src/components/FeedbackBanner.tsx b/src/frontend/src/components/FeedbackBanner.tsx index 52cc5daf..7fcdaf03 100644 --- a/src/frontend/src/components/FeedbackBanner.tsx +++ b/src/frontend/src/components/FeedbackBanner.tsx @@ -25,7 +25,9 @@ export const FeedbackBanner = () => { })} >