Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Add tailored font fallbacks for each of bundled fonts (#73626)

Oleh Kb06a489c1dc8
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_Default.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_Default.png
index 0a811a31f7a..f0e4444eb33 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_Default.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_Default.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_No_Background_Default.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_No_Background_Default.png
index dfba00667b9..4643d55b7bd 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_No_Background_Default.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_No_Background_Default.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_No_Background_Scroll.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_No_Background_Scroll.png
index d40fc5de702..e1be9fd1f51 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_No_Background_Scroll.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_No_Background_Scroll.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_Scroll.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_Scroll.png
index 9f25f357bd8..e5781c139eb 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_Scroll.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Dark_Theme_Scroll.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_Default.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_Default.png
index 33645bd4dcb..2b0a6c2d6d0 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_Default.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_Default.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_No_Background_Default.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_No_Background_Default.png
index 677e38dedb1..b032dd4b7aa 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_No_Background_Default.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_No_Background_Default.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_No_Background_Scroll.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_No_Background_Scroll.png
index f2ac9518818..3db2c35a823 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_No_Background_Scroll.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_No_Background_Scroll.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_Scroll.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_Scroll.png
index 2be47117c9b..37a9cc3db63 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_Scroll.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Light_Theme_Scroll.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_Default.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_Default.png
index 18386e13712..db00047d3d3 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_Default.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_Default.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_No_Background_Default.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_No_Background_Default.png
index 34a418e53ac..3b9e3e90b07 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_No_Background_Default.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_No_Background_Default.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_No_Background_Scroll.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_No_Background_Scroll.png
index 5abc007e8b2..5ae7905d9f4 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_No_Background_Scroll.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_No_Background_Scroll.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_Scroll.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_Scroll.png
index 681e7178987..5cdb580338f 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_Scroll.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_Transparent_Theme_Scroll.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_All_Options.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_All_Options.png
index 1d2475ff63a..1c7f87ba6ac 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_All_Options.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_All_Options.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Month_Year.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Month_Year.png
index c6e8cef1d37..32dd322334a 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Month_Year.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Month_Year.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Quarter_Year.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Quarter_Year.png
index c449662a3d4..4cdd6094786 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Quarter_Year.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Quarter_Year.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Quarter_Year_Dropdown.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Quarter_Year_Dropdown.png
index f58800422c6..69c196b5470 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Quarter_Year_Dropdown.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Quarter_Year_Dropdown.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Range.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Range.png
index e3b179c1d91..4515959a2ac 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Range.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Range.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Relative.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Relative.png
index 3916acef411..e7d6deedc3b 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Relative.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Relative.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Single.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Single.png
index 9cf9ec198f1..640d839446e 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Single.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Date_Filter_Single.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Number.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Number.png
index fbdd597775b..fc431e99743 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Number.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Number.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List.png
index de80e9658e0..5c53991f041 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List_Single_With_Value.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List_Single_With_Value.png
index 29a3f1adf33..51f6ae778a0 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List_Single_With_Value.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List_Single_With_Value.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List_With_Value.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List_With_Value.png
index de28438ad40..cb490558079 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List_With_Value.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_List_With_Value.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_Search.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_Search.png
index de80e9658e0..5c53991f041 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_Search.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_Search.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_Search_With_Value.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_Search_With_Value.png
index 39ba605317b..426ffef3378 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_Search_With_Value.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Parameter_Search_With_Value.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Text.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Text.png
index b0236466a8c..1453402e2dc 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Text.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Text.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Text_With_Value.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Text_With_Value.png
index b0236466a8c..1453402e2dc 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Text_With_Value.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Text_With_Value.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Unit_Of_Time.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Unit_Of_Time.png
index ea17bec674c..51d3af0d4b0 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Unit_Of_Time.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Dark_Theme_Unit_Of_Time.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_All_Options.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_All_Options.png
index 79f7979326d..7b3c3c63579 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_All_Options.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_All_Options.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Month_Year.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Month_Year.png
index c5ed1488d0e..d5869af441c 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Month_Year.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Month_Year.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Quarter_Year.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Quarter_Year.png
index bd4035175d4..c391b899177 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Quarter_Year.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Quarter_Year.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Quarter_Year_Dropdown.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Quarter_Year_Dropdown.png
index b6753445a7b..a0e9b16282d 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Quarter_Year_Dropdown.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Quarter_Year_Dropdown.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Range.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Range.png
index 829213f3dfb..9b08afad598 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Range.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Range.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Relative.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Relative.png
index 013f9799c5f..af7f0d6ae97 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Relative.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Relative.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Single.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Single.png
index 018e207db72..cd983902cbe 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Single.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Date_Filter_Single.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Number.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Number.png
index bcadce4f091..50c38d55563 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Number.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Number.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List.png
index a9dc82bea79..992581f04c4 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List_Single_With_Value.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List_Single_With_Value.png
index 305c37fe886..b25fda68419 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List_Single_With_Value.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List_Single_With_Value.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List_With_Value.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List_With_Value.png
index 5db0cc52d27..66afd06f8ee 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List_With_Value.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_List_With_Value.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_Search.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_Search.png
index 15958098b08..64c3b7cb399 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_Search.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_Search.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_Search_With_Value.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_Search_With_Value.png
index e6b4cde1f17..6ae789eef62 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_Search_With_Value.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Parameter_Search_With_Value.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Text.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Text.png
index 2aca34be5a3..7df5f51180c 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Text.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Text.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Text_With_Value.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Text_With_Value.png
index 2aca34be5a3..7df5f51180c 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Text_With_Value.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Text_With_Value.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Unit_Of_Time.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Unit_Of_Time.png
index 82d5b5f0fb2..f9ca4ccb2a0 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Unit_Of_Time.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedDashboardView_filters_Light_Theme_Unit_Of_Time.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Pivot_Table_Dark_Theme.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Pivot_Table_Dark_Theme.png
index 813a13a294e..4ab5f04df98 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Pivot_Table_Dark_Theme.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Pivot_Table_Dark_Theme.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Pivot_Table_Light_Theme.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Pivot_Table_Light_Theme.png
index 006a032ef6c..a0e08027b9b 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Pivot_Table_Light_Theme.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Pivot_Table_Light_Theme.png differ
diff --git a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Table_Light_Theme.png b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Table_Light_Theme.png
index aa6ddc3c055..6763c4ef31e 100644
Binary files a/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Table_Light_Theme.png and b/.loki/reference/chrome_laptop_App_Embed_PublicOrEmbeddedQuestionView_Table_Light_Theme.png differ
diff --git a/.loki/reference/chrome_laptop_DataGrid_DataGrid_Basic_Grid.png b/.loki/reference/chrome_laptop_DataGrid_DataGrid_Basic_Grid.png
index cb8b6d3105e..08e0dc119c9 100644
Binary files a/.loki/reference/chrome_laptop_DataGrid_DataGrid_Basic_Grid.png and b/.loki/reference/chrome_laptop_DataGrid_DataGrid_Basic_Grid.png differ
diff --git a/.loki/reference/chrome_laptop_DataGrid_DataGrid_Custom_Styles_Grid.png b/.loki/reference/chrome_laptop_DataGrid_DataGrid_Custom_Styles_Grid.png
index a9441f40768..9c1862b352b 100644
Binary files a/.loki/reference/chrome_laptop_DataGrid_DataGrid_Custom_Styles_Grid.png and b/.loki/reference/chrome_laptop_DataGrid_DataGrid_Custom_Styles_Grid.png differ
diff --git a/.loki/reference/chrome_laptop_DataGrid_DataGrid_Selectable_Rows.png b/.loki/reference/chrome_laptop_DataGrid_DataGrid_Selectable_Rows.png
index 5f6ef24efb7..2b12f410046 100644
Binary files a/.loki/reference/chrome_laptop_DataGrid_DataGrid_Selectable_Rows.png and b/.loki/reference/chrome_laptop_DataGrid_DataGrid_Selectable_Rows.png differ
diff --git a/.loki/reference/chrome_laptop_Viz_Shared_RowChart_Default.png b/.loki/reference/chrome_laptop_Viz_Shared_RowChart_Default.png
index b76288d2188..1eb3757a339 100644
Binary files a/.loki/reference/chrome_laptop_Viz_Shared_RowChart_Default.png and b/.loki/reference/chrome_laptop_Viz_Shared_RowChart_Default.png differ
diff --git a/.loki/reference/chrome_laptop_Viz_Shared_RowChart_Huge_Font.png b/.loki/reference/chrome_laptop_Viz_Shared_RowChart_Huge_Font.png
index 2a58740ea65..4d618216fcf 100644
Binary files a/.loki/reference/chrome_laptop_Viz_Shared_RowChart_Huge_Font.png and b/.loki/reference/chrome_laptop_Viz_Shared_RowChart_Huge_Font.png differ
diff --git a/.loki/reference/chrome_laptop_Viz_Static_Viz_BoxPlotChart_Box_Plot_Customization.png b/.loki/reference/chrome_laptop_Viz_Static_Viz_BoxPlotChart_Box_Plot_Customization.png
index eab15e9faa7..511f88cfd80 100644
Binary files a/.loki/reference/chrome_laptop_Viz_Static_Viz_BoxPlotChart_Box_Plot_Customization.png and b/.loki/reference/chrome_laptop_Viz_Static_Viz_BoxPlotChart_Box_Plot_Customization.png differ
diff --git a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Area_Stack_Linear_X_Axis.png b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Area_Stack_Linear_X_Axis.png
index 6033dfa0303..57849145e7a 100644
Binary files a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Area_Stack_Linear_X_Axis.png and b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Area_Stack_Linear_X_Axis.png differ
diff --git a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Formatting_Full.png b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Formatting_Full.png
index 9bfd3cdc0bf..c41feddce4a 100644
Binary files a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Formatting_Full.png and b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Formatting_Full.png differ
diff --git a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Stack_Linear_X_Axis.png b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Stack_Linear_X_Axis.png
index e26032e8293..9c35dd9108b 100644
Binary files a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Stack_Linear_X_Axis.png and b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Stack_Linear_X_Axis.png differ
diff --git a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Width_Dst_Timezones_56424.png b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Width_Dst_Timezones_56424.png
index 28b3e396c6d..c3424c8b561 100644
Binary files a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Width_Dst_Timezones_56424.png and b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bar_Width_Dst_Timezones_56424.png differ
diff --git a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bars_Breakout_Sorted_With_Negative_Values_Power_Y_Axis.png b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bars_Breakout_Sorted_With_Negative_Values_Power_Y_Axis.png
index 0f0f62b1859..82679eb1efc 100644
Binary files a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bars_Breakout_Sorted_With_Negative_Values_Power_Y_Axis.png and b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Bars_Breakout_Sorted_With_Negative_Values_Power_Y_Axis.png differ
diff --git a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Visualizer_Timeseries_Different_Units.png b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Visualizer_Timeseries_Different_Units.png
index a62d1c8ff10..267d9647025 100644
Binary files a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Visualizer_Timeseries_Different_Units.png and b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Visualizer_Timeseries_Different_Units.png differ
diff --git a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Watermark.png b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Watermark.png
index 0a93f792b6f..48c6859f032 100644
Binary files a/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Watermark.png and b/.loki/reference/chrome_laptop_Viz_Static_Viz_ComboChart_Watermark.png differ
diff --git a/.loki/reference/chrome_laptop_Viz_Static_Viz_ScatterPlot_Log_X_Scale.png b/.loki/reference/chrome_laptop_Viz_Static_Viz_ScatterPlot_Log_X_Scale.png
index 25ca2a730db..01d8198ffeb 100644
Binary files a/.loki/reference/chrome_laptop_Viz_Static_Viz_ScatterPlot_Log_X_Scale.png and b/.loki/reference/chrome_laptop_Viz_Static_Viz_ScatterPlot_Log_X_Scale.png differ
diff --git a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Auto.png b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Auto.png
index a360af833ee..1147ddfa616 100644
Binary files a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Auto.png and b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Auto.png differ
diff --git a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Compact.png b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Compact.png
index 528d835d662..795d7b5965c 100644
Binary files a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Compact.png and b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Compact.png differ
diff --git a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Full.png b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Full.png
index eb3c5d45714..2f2463f52a7 100644
Binary files a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Full.png and b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Full.png differ
diff --git a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Full_Dark_Background.png b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Full_Dark_Background.png
index 034d686c412..6f39afacd6f 100644
Binary files a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Full_Dark_Background.png and b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Edge_Labels_Full_Dark_Background.png differ
diff --git a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Gray_Edges.png b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Gray_Edges.png
index 53a10a4f5a7..a139b21f032 100644
Binary files a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Gray_Edges.png and b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Gray_Edges.png differ
diff --git a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Justify.png b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Justify.png
index 49d94f97251..5dfd3f77a29 100644
Binary files a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Justify.png and b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Justify.png differ
diff --git a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Left.png b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Left.png
index 095b61755ef..6f303f4834d 100644
Binary files a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Left.png and b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Left.png differ
diff --git a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Right.png b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Right.png
index 0f9860238be..94a420bcfef 100644
Binary files a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Right.png and b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Node_Align_Right.png differ
diff --git a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Target_Color_Edges.png b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Target_Color_Edges.png
index 7018c0fafea..c0a17f38dee 100644
Binary files a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Target_Color_Edges.png and b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Target_Color_Edges.png differ
diff --git a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Unaggregated_Data.png b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Unaggregated_Data.png
index e86b00f12a6..cfefcdbd50c 100644
Binary files a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Unaggregated_Data.png and b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_Unaggregated_Data.png differ
diff --git a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_With_Edges_Labels.png b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_With_Edges_Labels.png
index 3fa3e07c8a5..1bd34d3f5d9 100644
Binary files a/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_With_Edges_Labels.png and b/.loki/reference/chrome_laptop_viz_SankeyChart_Sankey_With_Edges_Labels.png differ
diff --git a/.loki/reference/chrome_laptop_viz_Table_Conditional_Fomatting_Dark.png b/.loki/reference/chrome_laptop_viz_Table_Conditional_Fomatting_Dark.png
index a6a09444d7a..d22b51b9570 100644
Binary files a/.loki/reference/chrome_laptop_viz_Table_Conditional_Fomatting_Dark.png and b/.loki/reference/chrome_laptop_viz_Table_Conditional_Fomatting_Dark.png differ
diff --git a/.loki/reference/chrome_laptop_viz_Table_Conditional_Fomatting_Light.png b/.loki/reference/chrome_laptop_viz_Table_Conditional_Fomatting_Light.png
index d9a093ca8f5..3f2f14fc75b 100644
Binary files a/.loki/reference/chrome_laptop_viz_Table_Conditional_Fomatting_Light.png and b/.loki/reference/chrome_laptop_viz_Table_Conditional_Fomatting_Light.png differ
diff --git a/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table.png b/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table.png
index 36b99ab4230..5d1d647a9f2 100644
Binary files a/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table.png and b/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table.png differ
diff --git a/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme.png b/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme.png
index 9999f292601..ba1d90a3ab5 100644
Binary files a/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme.png and b/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme.png differ
diff --git a/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme_With_Dark_Background.png b/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme_With_Dark_Background.png
index 0ea479f0559..5590c31be84 100644
Binary files a/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme_With_Dark_Background.png and b/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme_With_Dark_Background.png differ
diff --git a/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme_With_Sticky_Background_Color.png b/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme_With_Sticky_Background_Color.png
index 75429f9c050..5ba94bd9511 100644
Binary files a/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme_With_Sticky_Background_Color.png and b/.loki/reference/chrome_laptop_viz_Table_Dashboard_Table_Embedding_Theme_With_Sticky_Background_Color.png differ
diff --git a/.loki/reference/chrome_laptop_viz_Table_Preserve_Whitespace_Unwrapped.png b/.loki/reference/chrome_laptop_viz_Table_Preserve_Whitespace_Unwrapped.png
index c0397281f52..2b4f2329ee5 100644
Binary files a/.loki/reference/chrome_laptop_viz_Table_Preserve_Whitespace_Unwrapped.png and b/.loki/reference/chrome_laptop_viz_Table_Preserve_Whitespace_Unwrapped.png differ
diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx
index 1a90b81bfb4..b0c54fec25c 100644
--- a/.storybook/preview.tsx
+++ b/.storybook/preview.tsx
@@ -25,6 +25,33 @@ import { saveDomImageStyles } from "metabase/visualizations/lib/image-exports";
import { initialize, mswLoader } from "msw-storybook-addon";
+// Inject @font-face declarations synchronously at preview load so that bundled
+// fonts are registered with `document.fonts` before any story's loaders run.
+// Without this, the Emotion <Global /> in the decorator below registers them
+// later, and the fontsReady loader has nothing to wait for on first render.
+if (
+ typeof document !== "undefined" &&
+ !document.head.querySelector("style[data-metabase-font-faces]")
+) {
+ const fontFaceStyle = document.createElement("style");
+ fontFaceStyle.dataset.metabaseFontFaces = "true";
+ fontFaceStyle.textContent = defaultFontFiles({ baseUrl: "/" }).styles;
+ document.head.appendChild(fontFaceStyle);
+}
+
+// Force every registered font to load before the story renders. This ensures we
+// use same fonts for tests every time, instead of using generic fallback
+// family like `sans-serif` which might resolve to different specific fonts (depending
+// on what available on current machine) which might have different metrics, in turn
+// producing inconsistent behavior in code relying on measuring text (e.g., column
+// autosize in table visualization). Awaiting all loads here makes measurements
+// deterministic across platforms.
+const fontsReady = async () => {
+ const loads: Promise<unknown>[] = [];
+ document.fonts.forEach((face) => loads.push(face.load()));
+ await Promise.all(loads);
+};
+
// Note: Changing the names of the stories may impact loki visual testing. Please ensure that
// Any story name changes are also reflected in the loki.config.js storiesFilter array.
const parameters = {
@@ -169,7 +196,7 @@ initialize({
const preview = {
parameters,
decorators,
- loaders: [mswLoader],
+ loaders: [mswLoader, fontsReady],
argTypes,
};
diff --git a/e2e/test-component/scenarios/embedding-sdk/styles-tests.cy.spec.tsx b/e2e/test-component/scenarios/embedding-sdk/styles-tests.cy.spec.tsx
index 0ad28fc8701..f690cb5d21e 100644
--- a/e2e/test-component/scenarios/embedding-sdk/styles-tests.cy.spec.tsx
+++ b/e2e/test-component/scenarios/embedding-sdk/styles-tests.cy.spec.tsx
@@ -208,7 +208,11 @@ describe("scenarios > embedding-sdk > styles", () => {
"font-family",
defaultBrowserFontFamily,
);
- cy.findByText("Product ID").should("have.css", "font-family", "Lato");
+ cy.findByText("Product ID").should(
+ "have.css",
+ "font-family",
+ "Lato, Arial, sans-serif",
+ );
});
});
@@ -255,7 +259,7 @@ describe("scenarios > embedding-sdk > styles", () => {
cy.findByText(/Failed to fetch the user/).should(
"have.css",
"font-family",
- "Lato",
+ "Lato, Arial, sans-serif",
);
});
});
@@ -278,7 +282,7 @@ describe("scenarios > embedding-sdk > styles", () => {
getSdkRoot()
.findByText("Product ID")
- .should("have.css", "font-family", "Impact");
+ .should("have.css", "font-family", "Impact, sans-serif");
});
it("should fallback to the font from the instance if no fontFamily is set on the theme", () => {
@@ -311,7 +315,7 @@ describe("scenarios > embedding-sdk > styles", () => {
getSdkRoot()
.findByText("Product ID")
- .should("have.css", "font-family", '"Roboto Mono"');
+ .should("have.css", "font-family", '"Roboto Mono", monospace');
});
it("should work with 'Custom' fontFamily, using the font files linked in the instance", () => {
@@ -362,7 +366,7 @@ describe("scenarios > embedding-sdk > styles", () => {
getSdkRoot()
.findByText("Product ID")
- .should("have.css", "font-family", "Custom");
+ .should("have.css", "font-family", "Custom, sans-serif");
});
});
@@ -378,7 +382,7 @@ describe("scenarios > embedding-sdk > styles", () => {
H.modal()
.findByText("New dashboard")
.should("exist")
- .and("have.css", "font-family", "Lato");
+ .and("have.css", "font-family", "Lato, Arial, sans-serif");
// TODO: good place for a visual regression test
});
@@ -396,7 +400,7 @@ describe("scenarios > embedding-sdk > styles", () => {
getSdkRoot()
.findByText("Save")
.should("exist")
- .and("have.css", "font-family", "Lato")
+ .and("have.css", "font-family", "Lato, Arial, sans-serif")
.click();
// TODO: good place for a visual regression test
@@ -407,7 +411,7 @@ describe("scenarios > embedding-sdk > styles", () => {
getSdkRoot()
.findByText("Select a collection or dashboard")
.should("exist")
- .and("have.css", "font-family", "Lato");
+ .and("have.css", "font-family", "Lato, Arial, sans-serif");
// TODO: good place for a visual regression test
});
@@ -496,7 +500,7 @@ describe("scenarios > embedding-sdk > styles", () => {
H.popover()
.findByText("Columns")
- .should("have.css", "font-family", "Impact");
+ .should("have.css", "font-family", "Impact, sans-serif");
});
});
@@ -520,7 +524,7 @@ describe("scenarios > embedding-sdk > styles", () => {
H.tooltip()
.findByText("Clear")
- .should("have.css", "font-family", "Impact");
+ .should("have.css", "font-family", "Impact, sans-serif");
});
it("should render echarts tooltip with our styles", () => {
@@ -542,7 +546,7 @@ describe("scenarios > embedding-sdk > styles", () => {
.eq(0)
.should("exist")
.get(".echarts-tooltip-container")
- .should("have.css", "font-family", "Impact");
+ .should("have.css", "font-family", "Impact, sans-serif");
});
it("should render DragOverlay of SortableList with our styles", () => {
@@ -568,7 +572,7 @@ describe("scenarios > embedding-sdk > styles", () => {
cy.findByTestId("draggable-item-ID").should(
"have.css",
"font-family",
- "Impact",
+ "Impact, sans-serif",
);
});
},
diff --git a/e2e/test/scenarios/admin-2/whitelabel.cy.spec.js b/e2e/test/scenarios/admin-2/whitelabel.cy.spec.js
index 572dea077f1..8733b8f0c1c 100644
--- a/e2e/test/scenarios/admin-2/whitelabel.cy.spec.js
+++ b/e2e/test/scenarios/admin-2/whitelabel.cy.spec.js
@@ -553,33 +553,40 @@ describe("formatting > whitelabel", { tags: "@EE" }, () => {
});
describe("font", () => {
- const font = "Open Sans";
-
beforeEach(() => {
cy.log("Change Application Font");
cy.signInAsAdmin();
});
it("should apply correct font", () => {
- setApplicationFontTo(font);
+ setApplicationFontTo("Open Sans");
cy.signInAsNormalUser();
cy.visit("/");
- cy.get("body").should("have.css", "font-family", `"${font}", sans-serif`);
+ cy.get("body").should(
+ "have.css",
+ "font-family",
+ '"Open Sans", Lato, sans-serif',
+ );
});
it("should be able to make multiple font changes (metabase#45486)", () => {
cy.intercept("PUT", "/api/setting/application-font").as("saveFont");
- const fonts = ["Lora", "Merriweather", "Montserrat", "Lato"];
+ const fontsWithExpectedFallback = [
+ ["Lora", "serif"],
+ ["Merriweather", "Lora, serif"],
+ ["Montserrat", "sans-serif"],
+ ["Lato", "Arial, sans-serif"],
+ ];
cy.visit("/admin/settings/whitelabel/branding");
- fonts.forEach((newFont) => {
+ fontsWithExpectedFallback.forEach(([newFont, fallback]) => {
cy.findByLabelText("Font").click();
H.selectDropdown().findByText(newFont).click();
cy.wait("@saveFont");
cy.get("body").should(
"have.css",
"font-family",
- `${newFont}, sans-serif`,
+ `${newFont}, ${fallback}`,
);
});
});
diff --git a/e2e/test/scenarios/embedding/embedding-dashboard.cy.spec.js b/e2e/test/scenarios/embedding/embedding-dashboard.cy.spec.js
index c4d919de9fd..a9c77b160b4 100644
--- a/e2e/test/scenarios/embedding/embedding-dashboard.cy.spec.js
+++ b/e2e/test/scenarios/embedding/embedding-dashboard.cy.spec.js
@@ -897,14 +897,22 @@ describe("scenarios > embedding > dashboard appearance", () => {
cy.get("@previewEmbedSpy").should("have.callCount", 1);
cy.log("Assert font");
- H.getIframeBody().should("have.css", "font-family", "Lato, sans-serif");
+ H.getIframeBody().should(
+ "have.css",
+ "font-family",
+ "Lato, Arial, sans-serif",
+ );
cy.findByLabelText("Font").click();
});
// Since the select dropdown is rendered outside of the modal, we need to exit the modal context first.
H.selectDropdown().findByText("Oswald").click();
H.modal().within(() => {
- H.getIframeBody().should("have.css", "font-family", "Oswald, sans-serif");
+ H.getIframeBody().should(
+ "have.css",
+ "font-family",
+ 'Oswald, "Roboto Condensed", sans-serif',
+ );
cy.get("@previewEmbedSpy").should("have.callCount", 1);
});
});
@@ -1023,14 +1031,22 @@ describe("scenarios > embedding > dashboard appearance", () => {
cy.get("@previewEmbedSpy").should("have.callCount", 1);
cy.log("Assert font");
- H.getIframeBody().should("have.css", "font-family", "Lato, sans-serif");
+ H.getIframeBody().should(
+ "have.css",
+ "font-family",
+ "Lato, Arial, sans-serif",
+ );
cy.findByLabelText("Font").click();
});
// Since the select dropdown is rendered outside of the modal, we need to exit the modal context first.
H.selectDropdown().findByText("Oswald").click();
H.modal().within(() => {
- H.getIframeBody().should("have.css", "font-family", "Oswald, sans-serif");
+ H.getIframeBody().should(
+ "have.css",
+ "font-family",
+ 'Oswald, "Roboto Condensed", sans-serif',
+ );
cy.get("@previewEmbedSpy").should("have.callCount", 1);
});
});
@@ -1163,7 +1179,11 @@ describe("scenarios > embedding > dashboard appearance", () => {
},
);
- H.main().should("have.css", "font-family", "Roboto, sans-serif");
+ H.main().should(
+ "have.css",
+ "font-family",
+ 'Roboto, "Noto Sans", sans-serif',
+ );
});
it("should disable background via `#background=false` hash parameter when rendered inside an iframe (metabase#62391)", () => {
diff --git a/e2e/test/scenarios/embedding/embedding-questions.cy.spec.js b/e2e/test/scenarios/embedding/embedding-questions.cy.spec.js
index a0a5de18f51..fc631aebf83 100644
--- a/e2e/test/scenarios/embedding/embedding-questions.cy.spec.js
+++ b/e2e/test/scenarios/embedding/embedding-questions.cy.spec.js
@@ -295,7 +295,11 @@ describe("scenarios [EE] > embedding > questions", () => {
},
);
- H.main().should("have.css", "font-family", "Roboto, sans-serif");
+ H.main().should(
+ "have.css",
+ "font-family",
+ 'Roboto, "Noto Sans", sans-serif',
+ );
});
});
diff --git a/e2e/test/scenarios/question-reproductions/reproductions-4.cy.spec.js b/e2e/test/scenarios/question-reproductions/reproductions-4.cy.spec.js
index 2b63a5002f9..44a6d237b25 100644
--- a/e2e/test/scenarios/question-reproductions/reproductions-4.cy.spec.js
+++ b/e2e/test/scenarios/question-reproductions/reproductions-4.cy.spec.js
@@ -588,7 +588,7 @@ describe("issue 45359", { tags: "@skip" }, () => {
H.getNotebookStep("data")
.findByText("Orders")
- .should("have.css", "font-family", "Lato, sans-serif");
+ .should("have.css", "font-family", "Lato, Arial, sans-serif");
cy.get("@font-regular.all").should("have.length", 1);
cy.get("@font-regular").should(({ response }) => {
diff --git a/e2e/test/scenarios/sharing/sharing-reproductions.cy.spec.js b/e2e/test/scenarios/sharing/sharing-reproductions.cy.spec.js
index d70a6cdf359..2c8abc21f80 100644
--- a/e2e/test/scenarios/sharing/sharing-reproductions.cy.spec.js
+++ b/e2e/test/scenarios/sharing/sharing-reproductions.cy.spec.js
@@ -668,7 +668,12 @@ describe("issue 26988", () => {
});
cy.wait("@previewDashboard");
- H.getIframeBody().should("have.css", "font-family", "Lato, sans-serif");
+ H.getIframeBody().findByTestId("embed-frame").should("exist");
+ H.getIframeBody().should(
+ "have.css",
+ "font-family",
+ "Lato, Arial, sans-serif",
+ );
cy.findByLabelText("Customizing look and feel")
.findByLabelText("Font")
@@ -676,7 +681,11 @@ describe("issue 26988", () => {
.click();
H.popover().findByText("Oswald").click();
- H.getIframeBody().should("have.css", "font-family", "Oswald, sans-serif");
+ H.getIframeBody().should(
+ "have.css",
+ "font-family",
+ 'Oswald, "Roboto Condensed", sans-serif',
+ );
cy.get("@font-control").click();
H.popover().findByText("Slabo 27px").click();
@@ -684,7 +693,7 @@ describe("issue 26988", () => {
H.getIframeBody().should(
"have.css",
"font-family",
- '"Slabo 27px", sans-serif',
+ '"Slabo 27px", "Roboto Slab", serif',
);
});
});
diff --git a/frontend/src/embedding-sdk-bundle/types/ui.ts b/frontend/src/embedding-sdk-bundle/types/ui.ts
index ba3efe54ec0..3ceb1673dff 100644
--- a/frontend/src/embedding-sdk-bundle/types/ui.ts
+++ b/frontend/src/embedding-sdk-bundle/types/ui.ts
@@ -36,6 +36,7 @@ export type InitializationStatus =
| InitializationStatusError;
export type { ButtonProps } from "metabase/ui";
+export type { MetabaseFontFamily } from "metabase/ui/fonts";
export type {
ChartColor,
MetabaseTheme,
@@ -43,7 +44,6 @@ export type {
MetabaseColors,
MetabaseComponentTheme,
} from "metabase/embedding-sdk/theme";
-export type { MetabaseFontFamily } from "metabase/embedding-sdk/theme/fonts";
export type SdkErrorComponentProps = {
type?: "relative" | "fixed";
diff --git a/frontend/src/metabase/admin/embedding/components/ThemeEditor/EditorPanel.tsx b/frontend/src/metabase/admin/embedding/components/ThemeEditor/EditorPanel.tsx
index 435cdef268b..3abae858cb5 100644
--- a/frontend/src/metabase/admin/embedding/components/ThemeEditor/EditorPanel.tsx
+++ b/frontend/src/metabase/admin/embedding/components/ThemeEditor/EditorPanel.tsx
@@ -2,7 +2,6 @@ import { useMemo, useState } from "react";
import { t } from "ttag";
import type { EmbeddingThemeEditorResult } from "metabase/admin/embedding/hooks/use-embedding-theme-editor";
-import type { MetabaseFontFamily } from "metabase/embedding-sdk/theme/fonts";
import {
Box,
Button,
@@ -17,6 +16,7 @@ import {
TextInput,
UnstyledButton,
} from "metabase/ui";
+import type { MetabaseFontFamily } from "metabase/ui/fonts";
import { ColorSwatchCard } from "./ColorSwatchCard";
import {
diff --git a/frontend/src/metabase/admin/embedding/components/ThemeEditor/constants.ts b/frontend/src/metabase/admin/embedding/components/ThemeEditor/constants.ts
index 512aa304e5c..1a068ef2116 100644
--- a/frontend/src/metabase/admin/embedding/components/ThemeEditor/constants.ts
+++ b/frontend/src/metabase/admin/embedding/components/ThemeEditor/constants.ts
@@ -2,28 +2,13 @@ import { t } from "ttag";
import type { MetabaseColor } from "metabase/embedding-sdk/theme";
import { ACCENT_COUNT } from "metabase/ui/colors/palette";
+import { PREDEFINED_FONT_FAMILIES_FALLBACK_MAP } from "metabase/ui/fonts";
-export const FONT_FAMILY_OPTIONS: { value: string; label: string }[] = [
- { value: "Roboto", label: "Roboto" },
- { value: "Merriweather", label: "Merriweather" },
- { value: "Open Sans", label: "Open Sans" },
- { value: "Lato", label: "Lato" },
- { value: "Noto Sans", label: "Noto Sans" },
- { value: "Roboto Slab", label: "Roboto Slab" },
- { value: "Source Sans Pro", label: "Source Sans Pro" },
- { value: "Raleway", label: "Raleway" },
- { value: "Slabo 27px", label: "Slabo 27px" },
- { value: "PT Sans", label: "PT Sans" },
- { value: "Poppins", label: "Poppins" },
- { value: "PT Serif", label: "PT Serif" },
- { value: "Roboto Mono", label: "Roboto Mono" },
- { value: "Roboto Condensed", label: "Roboto Condensed" },
- { value: "Playfair Display", label: "Playfair Display" },
- { value: "Oswald", label: "Oswald" },
- { value: "Ubuntu", label: "Ubuntu" },
- { value: "Montserrat", label: "Montserrat" },
- { value: "Lora", label: "Lora" },
-];
+export const FONT_FAMILY_OPTIONS: { value: string; label: string }[] =
+ Object.keys(PREDEFINED_FONT_FAMILIES_FALLBACK_MAP).map((name) => ({
+ value: name,
+ label: name,
+ }));
export const PRIMARY_COLORS: {
key: Exclude<MetabaseColor, "charts">;
diff --git a/frontend/src/metabase/css/components/buttons.module.css b/frontend/src/metabase/css/components/buttons.module.css
index 5410dcde86c..2c0e033682e 100644
--- a/frontend/src/metabase/css/components/buttons.module.css
+++ b/frontend/src/metabase/css/components/buttons.module.css
@@ -12,7 +12,7 @@
color: var(--mb-color-text-primary);
cursor: pointer;
font-weight: bold;
- font-family: var(--mb-default-font-family), sans-serif;
+ font-family: var(--mb-default-font-family);
border-radius: var(--default-button-border-radius);
transition: all 200ms linear;
transition-property: color, border-color, background-color;
diff --git a/frontend/src/metabase/css/core/base.styled.ts b/frontend/src/metabase/css/core/base.styled.ts
index 64f3aed9978..f4c22907f93 100644
--- a/frontend/src/metabase/css/core/base.styled.ts
+++ b/frontend/src/metabase/css/core/base.styled.ts
@@ -2,7 +2,7 @@
import { css } from "@emotion/react";
export const rootStyle = css`
- font-family: var(--mb-default-font-family), sans-serif;
+ font-family: var(--mb-default-font-family);
font-weight: 400;
font-style: normal;
color: var(--mb-color-text-primary);
diff --git a/frontend/src/metabase/css/reset.module.css b/frontend/src/metabase/css/reset.module.css
index 9f11c676fa1..386d2d30093 100644
--- a/frontend/src/metabase/css/reset.module.css
+++ b/frontend/src/metabase/css/reset.module.css
@@ -50,8 +50,7 @@
button,
input,
textarea {
- font-family:
- var(--mb-default-font-family), "Helvetica Neue", Helvetica, sans-serif;
+ font-family: var(--mb-default-font-family);
}
textarea {
diff --git a/frontend/src/metabase/embedding-sdk/theme/MetabaseTheme.ts b/frontend/src/metabase/embedding-sdk/theme/MetabaseTheme.ts
index 572c9553f8a..643c8e538e9 100644
--- a/frontend/src/metabase/embedding-sdk/theme/MetabaseTheme.ts
+++ b/frontend/src/metabase/embedding-sdk/theme/MetabaseTheme.ts
@@ -1,11 +1,10 @@
import type { CSSProperties } from "react";
import type { ColorName } from "metabase/ui/colors/types";
+import type { MetabaseFontFamily } from "metabase/ui/fonts";
import type { DeepPartial } from "../types/utils";
-import type { MetabaseFontFamily } from "./fonts";
-
export type MetabaseThemePreset = "light" | "dark";
/**
diff --git a/frontend/src/metabase/embedding-sdk/theme/fonts.ts b/frontend/src/metabase/embedding-sdk/theme/fonts.ts
deleted file mode 100644
index 9a2bc177cbc..00000000000
--- a/frontend/src/metabase/embedding-sdk/theme/fonts.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-export type MetabaseFontFamily =
- | "Roboto"
- | "Merriweather"
- | "Open Sans"
- | "Lato"
- | "Noto Sans"
- | "Roboto Slab"
- | "Source Sans Pro"
- | "Raleway"
- | "Slabo 27px"
- | "PT Sans"
- | "Poppins"
- | "PT Serif"
- | "Roboto Mono"
- | "Roboto Condensed"
- | "Playfair Display"
- | "Oswald"
- | "Ubuntu"
- | "Montserrat"
- | "Lora"
- | "Custom";
diff --git a/frontend/src/metabase/metabot/components/MetabotInlineSQLPrompt/MetabotInlineSQLPrompt.module.css b/frontend/src/metabase/metabot/components/MetabotInlineSQLPrompt/MetabotInlineSQLPrompt.module.css
index b93a63c75bd..80219fd95bb 100644
--- a/frontend/src/metabase/metabot/components/MetabotInlineSQLPrompt/MetabotInlineSQLPrompt.module.css
+++ b/frontend/src/metabase/metabot/components/MetabotInlineSQLPrompt/MetabotInlineSQLPrompt.module.css
@@ -20,7 +20,7 @@
}
.inputContainer :global(.ProseMirror) {
- font-family: var(--mb-default-font-family), sans-serif;
+ font-family: var(--mb-default-font-family);
font-size: 0.75rem;
min-height: 1.25rem;
padding: 0.25rem 0.125rem;
diff --git a/frontend/src/metabase/styled-components/containers/GlobalStyles/GlobalStyles.tsx b/frontend/src/metabase/styled-components/containers/GlobalStyles/GlobalStyles.tsx
index 11afcf7e347..5fffb416ea3 100644
--- a/frontend/src/metabase/styled-components/containers/GlobalStyles/GlobalStyles.tsx
+++ b/frontend/src/metabase/styled-components/containers/GlobalStyles/GlobalStyles.tsx
@@ -12,6 +12,7 @@ import {
import { useSelector } from "metabase/redux";
import { getMetabaseCssVariables } from "metabase/styled-components/theme/css-variables";
import { useMantineTheme } from "metabase/ui";
+import { getFontFamilyValue } from "metabase/ui/fonts";
import { getSitePath } from "metabase/utils/dom";
import { saveDomImageStyles } from "metabase/visualizations/lib/image-exports";
@@ -35,7 +36,7 @@ export const GlobalStyles = (): JSX.Element => {
return css`
${cssVariables}
:root {
- --mb-default-font-family: "${font}";
+ --mb-default-font-family: ${getFontFamilyValue(font)};
}
${defaultFontFiles({ baseUrl: sitePath })}
diff --git a/frontend/src/metabase/styled-components/theme/css-variables.ts b/frontend/src/metabase/styled-components/theme/css-variables.ts
index ca1cc8612a1..0ddfb8782f1 100644
--- a/frontend/src/metabase/styled-components/theme/css-variables.ts
+++ b/frontend/src/metabase/styled-components/theme/css-variables.ts
@@ -15,6 +15,7 @@ import {
import type { MantineTheme } from "metabase/ui";
import { deriveFullMetabaseTheme } from "metabase/ui/colors";
import type { ColorName } from "metabase/ui/colors/types";
+import { getFontFamilyValue } from "metabase/ui/fonts";
import type { ResolvedColorScheme } from "metabase/utils/color-scheme";
import type { ColorSettings } from "metabase-types/api";
@@ -67,7 +68,7 @@ export function getMetabaseSdkCssVariables({
}) {
return css`
:root {
- --mb-default-font-family: ${font};
+ --mb-default-font-family: ${getFontFamilyValue(font)};
${createColorVars("light", whitelabelColors)}
${getSdkDesignSystemCssVariables(theme)}
${getDynamicCssVariables(theme)}
diff --git a/frontend/src/metabase/ui/fonts.ts b/frontend/src/metabase/ui/fonts.ts
new file mode 100644
index 00000000000..718969c53be
--- /dev/null
+++ b/frontend/src/metabase/ui/fonts.ts
@@ -0,0 +1,74 @@
+export type MetabaseFontFamily =
+ | "Roboto"
+ | "Merriweather"
+ | "Open Sans"
+ | "Lato"
+ | "Inter"
+ | "Noto Sans"
+ | "Roboto Slab"
+ | "Source Sans Pro"
+ | "Raleway"
+ | "Slabo 27px"
+ | "PT Sans"
+ | "Poppins"
+ | "PT Serif"
+ | "Roboto Mono"
+ | "Roboto Condensed"
+ | "Playfair Display"
+ | "Oswald"
+ | "Ubuntu"
+ | "Montserrat"
+ | "Lora"
+ | "Custom";
+
+type PredefinedFontName = Exclude<MetabaseFontFamily, "Custom">;
+
+// NOTE: This map is NOT the source of truth for the fonts Metabase ships.
+// The canonical list is computed by `src/metabase/util/fonts.clj`, which
+// scans `resources/frontend_client/app/fonts/` at runtime and exposes the
+// result via the `available-fonts` setting — that's what populates the
+// main admin appearance dropdown.
+//
+// This map is consumed by the embedding ThemeEditor (its dropdown and the
+// `MetabaseFontFamily` union above) and by `getFontFamilyValue` to pick a
+// per-font CSS fallback chain on a best-effort basis for cases when selected
+// font may lack some glyphs.
+//
+// When adding or removing a directory under `resources/frontend_client/app/fonts/`,
+// please keep this map and `MetabaseFontFamily` in sync.
+export const PREDEFINED_FONT_FAMILIES_FALLBACK_MAP: Record<
+ PredefinedFontName,
+ string
+> = {
+ Roboto: '"Noto Sans", sans-serif',
+ Merriweather: '"Lora", serif',
+ "Open Sans": '"Lato", sans-serif',
+ Lato: "Arial, sans-serif",
+ Inter: "sans-serif",
+ "Noto Sans": "sans-serif",
+ "Roboto Slab": "serif",
+ "Source Sans Pro": '"Lato", sans-serif',
+ Raleway: '"Montserrat", sans-serif',
+ "Slabo 27px": '"Roboto Slab", serif',
+ "PT Sans": '"Lato", sans-serif',
+ Poppins: '"Montserrat", sans-serif',
+ "PT Serif": '"Lora", serif',
+ "Roboto Mono": "monospace",
+ "Roboto Condensed": "sans-serif",
+ "Playfair Display": "serif",
+ Oswald: '"Roboto Condensed", sans-serif',
+ Ubuntu: '"Lato", sans-serif',
+ Montserrat: "sans-serif",
+ Lora: "serif",
+};
+
+function isPredefinedFontName(font: string): font is PredefinedFontName {
+ return font in PREDEFINED_FONT_FAMILIES_FALLBACK_MAP;
+}
+
+export function getFontFamilyValue(font: string): string {
+ const fallback = isPredefinedFontName(font)
+ ? PREDEFINED_FONT_FAMILIES_FALLBACK_MAP[font]
+ : "sans-serif";
+ return `"${font}", ${fallback}`;
+}
diff --git a/frontend/src/metabase/ui/theme.ts b/frontend/src/metabase/ui/theme.ts
index dce40fe6729..992b36139c3 100644
--- a/frontend/src/metabase/ui/theme.ts
+++ b/frontend/src/metabase/ui/theme.ts
@@ -147,7 +147,7 @@ export const getThemeOverrides = (
},
},
},
- fontFamily: "var(--mb-default-font-family), sans-serif",
+ fontFamily: "var(--mb-default-font-family)",
fontFamilyMonospace: "Monaco, monospace",
components: {
...accordionOverrides,
diff --git a/frontend/src/metabase/visualizations/hooks/use-browser-rendering-context.ts b/frontend/src/metabase/visualizations/hooks/use-browser-rendering-context.ts
index 17bcc35eb57..bd653cc07a0 100644
--- a/frontend/src/metabase/visualizations/hooks/use-browser-rendering-context.ts
+++ b/frontend/src/metabase/visualizations/hooks/use-browser-rendering-context.ts
@@ -3,6 +3,7 @@ import { useMemo } from "react";
import { usePalette } from "metabase/common/hooks/use-palette";
import { useMantineTheme } from "metabase/ui";
import { color } from "metabase/ui/colors";
+import { getFontFamilyValue } from "metabase/ui/fonts";
import {
measureTextHeight,
measureTextWidth,
@@ -34,7 +35,7 @@ export const useBrowserRenderingContext = (
getColor: (name) => color(name, palette),
measureText: measureTextWidth,
measureTextHeight,
- fontFamily: `${fontFamily}, Arial, sans-serif`,
+ fontFamily: getFontFamilyValue(fontFamily),
theme: style,
};
}, [fontFamily, palette, theme, isDashboard]);
diff --git a/frontend/src/metabase/visualizations/visualizations/RowChart/RowChart.tsx b/frontend/src/metabase/visualizations/visualizations/RowChart/RowChart.tsx
index 8892092be7a..c6e538c519a 100644
--- a/frontend/src/metabase/visualizations/visualizations/RowChart/RowChart.tsx
+++ b/frontend/src/metabase/visualizations/visualizations/RowChart/RowChart.tsx
@@ -3,6 +3,7 @@ import { t } from "ttag";
import { ExplicitSize } from "metabase/common/components/ExplicitSize";
import CS from "metabase/css/core/index.css";
+import { getFontFamilyValue } from "metabase/ui/fonts";
import type { FontStyle } from "metabase/utils/measure-text";
import { measureTextWidth } from "metabase/utils/measure-text";
import { extractRemappedColumns } from "metabase/visualizations";
@@ -143,10 +144,7 @@ const RowChartVisualization = ({
);
const goal = useMemo(() => getChartGoal(settings), [settings]);
const stackOffset = getStackOffset(settings);
- const theme = useRowChartTheme(
- `${fontFamily}, Arial, sans-serif`,
- isDashboard,
- );
+ const theme = useRowChartTheme(getFontFamilyValue(fontFamily), isDashboard);
const chartWarnings = useMemo(
() => getChartWarnings(chartColumns, data.rows),