with one click
corp-web-japan-preview-root-rem-parity
// Preserve visual parity when importing QueryPie public pages into corp-web-japan while the source site may use a 15px html root and corp-web-japan intentionally keeps a 16px root.
// Preserve visual parity when importing QueryPie public pages into corp-web-japan while the source site may use a 15px html root and corp-web-japan intentionally keeps a 16px root.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | corp-web-japan-preview-root-rem-parity |
| description | Preserve visual parity when importing QueryPie public pages into corp-web-japan while the source site may use a 15px html root and corp-web-japan intentionally keeps a 16px root. |
| version | 1.0.0 |
| author | Hermes Agent |
| license | MIT |
| metadata | {"hermes":{"tags":["corp-web-japan","preview","typography","rem","parity","static-page","migration"]}} |
Use this when copying or recreating UI design from querypie.com/ja/** or querypie.com/en/** into corp-web-japan preview routes.
Source QueryPie public pages can render under html { font-size: 15px; }, while corp-web-japan should keep the more standard html { font-size: 16px; }.
Because of that, do not blindly copy source computed pixel values into corp-web-japan.
DevTools can show two different but both-correct values:
--rem-52px or 3.25rem48.75pxExample:
3.25rem15px48.75px16px52pxIf corp-web-japan keeps 16px root, preserve the source token/design intent and convert values for the 16px-root environment instead of copying 15px-root computed output.
Important override learned from real preview-page follow-up work:
15px / 24.375px under a 15px root, but the user later asked for site-wide consistency. The correct outcome was to stop treating that page as a typography exception and switch the preview page to the repo's shared body pattern instead.final_px = rem_value * source_root_pxrem_value = computed_px / source_root_pxpreview_px = rem_value * 16Do this for:
A practical follow-up lesson from /t/about-us:
15px only because the source site runs under html { font-size: 15px; }corp-web-japan intentionally keeps a 16px root and already has a shared/default body typography convention, do not preserve the source page's smaller computed body text just for numeric parityPractical rule:
corp-web-japan, first check whether the repo already has a common body text pattern such as text-base leading-8 text-slate-60015px/24.375px body copy to that shared site-wide body style instead of freezing the live page's 15px-root used valueExample:
15px, computed 15px / 24.375px16pxcorp-web-japan: text-base leading-8 text-slate-600/news, /whitepapers, top page, and solutions pages, prefer text-base leading-8 for the preview route body copyhtml root font sizeA CTA title that looks like 52px in source Styles but computes to 48.75px under a 15px root should usually become 52px again in corp-web-japan, because the preview keeps a 16px root.