From 98faa95f9dacb67c5764c9580e440a31d628bd85 Mon Sep 17 00:00:00 2001 From: anemne <63043552+anemne@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:59:31 +0200 Subject: [PATCH] v3 - replace current fonts with Britti sans (#722) * replace figtree and recoleta with britti-sans * Update .storybook/preview.tsx Co-authored-by: christinaroise <54266462+christinaroise@users.noreply.github.com> * Update src/app/layout.tsx Co-authored-by: Mathias Oterhals Myklebust <24361490+mathiazom@users.noreply.github.com> * resolve conflict * fix up font path --------- Co-authored-by: christinaroise <54266462+christinaroise@users.noreply.github.com> Co-authored-by: Mathias Oterhals Myklebust <24361490+mathiazom@users.noreply.github.com> --- .storybook/preview.tsx | 15 ++++----------- public/_assets/britti-sans-variable.woff2 | Bin 0 -> 114376 bytes src/app/layout.tsx | 15 ++++----------- src/blog/components/hero/blogHero.module.css | 2 +- src/blog/components/legal/legal.module.css | 2 +- .../components/postCard/postCard.module.css | 2 +- src/components/buttons/button.module.css | 2 +- src/components/link/link.module.css | 6 +++--- .../linkButton/linkButton.module.css | 2 +- .../navigation/footer/footer.module.css | 2 +- .../testimonials/testimonials.module.css | 2 +- .../skipToMain/skipToMain.module.css | 2 +- src/components/text/text.module.css | 4 ++-- 13 files changed, 21 insertions(+), 35 deletions(-) create mode 100644 public/_assets/britti-sans-variable.woff2 diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index d513c5f49..a2e7be0c4 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -1,18 +1,11 @@ import React from "react"; import type { Preview } from "@storybook/react"; -import { Figtree } from "next/font/google"; import "../src/styles/global.css"; import localFont from "next/font/local"; -const fontRecoleta = localFont({ - src: "../../public/_assets/recoleta.otf", - variable: "--font-recoleta", -}); - -const fontFigtree = Figtree({ - subsets: ["latin"], - weight: "400", - variable: "--font-figtree", +const fontBrittiSans = localFont({ + src: "../../public/_assets/britti-sans-variable.woff2", + variable: "--font-britti-sans", }); const preview: Preview = { @@ -42,7 +35,7 @@ const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