From 66cb8f40e0dc572a652a2d7feebe9a4651fa9ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederic=20G=2E=20=C3=98stby?= Date: Tue, 14 Nov 2023 21:20:56 +0100 Subject: [PATCH] Fixed fonts? --- package.json | 2 +- src/light.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f458ca4..c97679e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@digitalarkivet/mui-theme", - "version": "2.0.0-alpha11", + "version": "2.0.0-alpha12", "description": "MUI themes for Digitalarkivet applications", "private": false, "main": "dist/main.js", diff --git a/src/light.ts b/src/light.ts index 3e0cb9c..39aeeef 100644 --- a/src/light.ts +++ b/src/light.ts @@ -332,6 +332,7 @@ const themeColors = createTheme({ typography: { ...themeTypography.typography, body: { + fontFamily: themeTypography.typography.fontFamily, fontWeight: themeTypography.typography.fontWeightRoman, fontSize: themeTypography.typography.fontSize16, lineHeight: themeTypography.typography.lineHeight150, @@ -426,6 +427,13 @@ const themeColors = createTheme({ const theme = createTheme( { components: { + MuiCssBaseline: { + styleOverrides: { + body: { + fontFamily: themeTypography.typography.fontFamily, + }, + }, + }, MuiPaper: { variants: [ {