From 0d13a4b2b6756428c16e2098c86d909f0e4c50cf Mon Sep 17 00:00:00 2001 From: luoxiaozero <48741584+luoxiaozero@users.noreply.github.com> Date: Thu, 22 Aug 2024 21:12:36 +0800 Subject: [PATCH] feat: font add ui-* and system-ui (#234) --- thaw/src/theme/common.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thaw/src/theme/common.rs b/thaw/src/theme/common.rs index 281b22e..ca8efbf 100644 --- a/thaw/src/theme/common.rs +++ b/thaw/src/theme/common.rs @@ -69,9 +69,9 @@ pub struct CommonTheme { impl CommonTheme { pub fn new() -> Self { Self { - font_family_base: "'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif".into(), - font_family_monospace: "Consolas, 'Courier New', Courier, monospace".into(), - font_family_numeric: "Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif".into(), + font_family_base: "'Segoe UI', 'Segoe UI Web (West European)', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif".into(), + font_family_monospace: "Consolas, ui-monospace, 'Courier New', Courier, monospace".into(), + font_family_numeric: "Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif".into(), font_size_base_100: "10px".into(), font_size_base_200: "12px".into(),