diff --git a/templates/phase_z2/families/dx_sw_necessity_three_perspectives.html b/templates/phase_z2/families/dx_sw_necessity_three_perspectives.html index 5a079e4..11539ee 100644 --- a/templates/phase_z2/families/dx_sw_necessity_three_perspectives.html +++ b/templates/phase_z2/families/dx_sw_necessity_three_perspectives.html @@ -18,11 +18,18 @@ builder/parser 0. - figma_to_html (1171281198) = source/evidence — 386-line index.html + assets/. - Phase Z = runtime — 본 commit adds catalog + partial + smoke fixture. -PROMOTED — CSS : - - 3 column header bg : dark green (`#296B55` family, Figma green theme) - - header text white bold + green accent - - title gradient (#000 → #883700, F13/F14/F12/F11/F18 zone-title family) - - card border + bullet markers (green family) +PROMOTED — CSS (verbatim from figma_to_html_agent/blocks/1171281198/index.html) : + - 3 column header bg : two-stop vertical adaptation of upstream horizontal + banner gradient end-stops — start `rgb(15, 50, 30)` (upstream :54, stop 0%), + end `rgb(60, 52, 34)` (upstream :64, stop 100%). Adaptation surface = + direction (90deg → 180deg) + stop count (11 → 2); colors verbatim. + - header text white bold + green accent (white #fff verbatim, see upstream + :202 `color: #ffffff`) + - title gradient (#000 → #883700, F13/F14/F12/F11/F18 zone-title family; + shared zone-title token, not from this frame) + - card border + bullet markers : `#1d4d3e` (upstream :208 `.card-title-1` + `-webkit-text-stroke: 1.5px #1d4d3e`). Replaces earlier eyeballed + `#296B55` approximation (IMP-49 #78 u1). NOT PROMOTED (P1 case-by-case, compact zone fit) : - 상단 dark green banner (Figma 의 큰 visual 영역, MDX 의 *title 만* 핵심) @@ -80,7 +87,7 @@ slots : } .f20b__col { display: flex; flex-direction: column; - border: 2px solid #296B55; /* PROMOTED — green family from Figma */ + border: 2px solid #1d4d3e; /* PROMOTED — verbatim from upstream :208 (.card-title-1 -webkit-text-stroke) */ border-radius: 8px; overflow: hidden; background: #fff; @@ -89,7 +96,7 @@ slots : /* header bar (top of each card, dark green per Figma) */ .f20b__header { - background: linear-gradient(180deg, #296B55 0%, #123328 100%); /* PROMOTED — Figma green theme */ + background: linear-gradient(180deg, rgb(15, 50, 30) 0%, rgb(60, 52, 34) 100%); /* PROMOTED — verbatim end-stops from upstream :54 (0%) and :64 (100%); 11-stop horizontal banner adapted to 2-stop vertical card header */ color: #fff; font-weight: 700; font-size: var(--font-sub-title); @@ -121,11 +128,20 @@ slots : content: "\2713"; /* ✓ check mark — green theme */ position: absolute; left: 0; top: 0; - color: #296B55; /* PROMOTED — green family */ + color: #1d4d3e; /* PROMOTED — verbatim from upstream :208 (.card-title-1 -webkit-text-stroke) */ font-weight: 700; } + +
{{ slot_payload.title }}
diff --git a/tests/test_imp49_partial_figma_provenance.py b/tests/test_imp49_partial_figma_provenance.py new file mode 100644 index 0000000..39421f9 --- /dev/null +++ b/tests/test_imp49_partial_figma_provenance.py @@ -0,0 +1,64 @@ +"""IMP-49 #78 — partial Figma provenance regression test. + +For `templates/phase_z2/families/dx_sw_necessity_three_perspectives.html`, +extract color literals (hex + rgb/rgba, whitespace-preserving) from the +", re.DOTALL) + + +def _extract_style_block(html_text: str) -> str: + match = STYLE_RE.search(html_text) + assert match, f"partial {PARTIAL_PATH} must contain a