From 633ea61c32721c5bbe01d8569048ac6794cb3cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=88=98=ED=98=84?= Date: Tue, 20 Oct 2026 16:59:02 +0900 Subject: [PATCH] feat(sw): use Dotum as the SW default font MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - --hm-sw-header-font-family: Dotum, "돋움", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif (one token on the outermost SW scope; no font file, no per-component font-family). Web UI keeps Noto Sans KR. - Header drawing-mode cell keeps its Figma 90px width; padding 8px -> 4px because Dotum has no bold face and the synthesized 700 made "그리기모드" (77.8px) overflow the 74px content box. --- packages/sw/src/theme/sw-footer.css | 2 +- packages/sw/src/theme/sw.css | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/sw/src/theme/sw-footer.css b/packages/sw/src/theme/sw-footer.css index 41f13b1..9e63565 100644 --- a/packages/sw/src/theme/sw-footer.css +++ b/packages/sw/src/theme/sw-footer.css @@ -1,6 +1,6 @@ /* @hm-design/sw — SW Footer (Figma "레이아웃 분리" 26:10097 bottom bar, components 26:9459 … 26:10097, read through the Figma Plugin API 2026-10-20). Footer-only tokens. Text keeps the SW typography of sw.css - (Noto Sans KR instead of Dotum, black OUTSIDE outline as 16 text-shadows, own-color 0.3 / 0.4px strokes removed + (Dotum like Figma since 2026-10-20, black OUTSIDE outline as 16 text-shadows, own-color 0.3 / 0.4px strokes removed like the 2026-10-16 header fix). Never touches global selectors, SWHeader or SWPopup classes. Declared on the outermost SW scope only, like sw.css: the command line inside the bar inherits the tokens. */ diff --git a/packages/sw/src/theme/sw.css b/packages/sw/src/theme/sw.css index ad511f5..27441bb 100644 --- a/packages/sw/src/theme/sw.css +++ b/packages/sw/src/theme/sw.css @@ -17,8 +17,10 @@ --hm-sw-header-logo-width: 32px; --hm-sw-header-logo-height: 17px; - /* Typography (Figma Dotum is replaced by Noto Sans KR on purpose) */ - --hm-sw-header-font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; + /* Typography: SW default is Dotum like Figma (2026-10-20). Installed system font only (Windows gulim.ttc); the + package ships no font file. Malgun Gothic / Apple SD Gothic Neo cover systems without Dotum. Web UI keeps + Noto Sans KR (its own token); this token never leaves the SW scope. */ + --hm-sw-header-font-family: Dotum, "돋움", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; --hm-sw-header-font-size: 14px; --hm-sw-header-label-size: 12px; @@ -539,7 +541,9 @@ flex: 0 1 90px; min-width: 0; margin-left: -1px; - padding: 0 8px; + /* 4px (was 8px): Dotum has no bold face, so 700 is synthesized ~1px wider per glyph ("그리기모드" 77.8px); + the centered label fits the Figma 90px cell again. */ + padding: 0 4px; overflow: hidden; text-align: center; white-space: nowrap;