From 0859893e65068e0a8f6afdda078d73335d5fbf1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Fri, 23 Oct 2026 08:07:34 +0800 Subject: [PATCH] feat: port cms design tokens and base styles into trade-pro theme.css Full port of astro-site-runtime tokens.css (183 tokens, V2 bright-blue) and base.css (element baseline, layout utilities, forms, FAQ, reveal motion, 620px mobile block) into the trade-pro theme. All cms variables renamed with the --sf-tp- prefix keeping semantic names; button system rebuilt as sf-tp-btn with sm/lg sizes and ghost/outline/round variants so platform custom.css (.btn/.primary/.request/.button/.nav-btn) can never restyle it. Phase-2 short token aliases (--sf-tp-primary etc.) and .pro-* bridge rules retained, now driven by the cms tokens. Co-Authored-By: Claude Code --- tests/test_theme_registry.py | 39 ++ themes/trade-pro/theme.css | 770 ++++++++++++++++++++++++++++++++++- 2 files changed, 794 insertions(+), 15 deletions(-) diff --git a/tests/test_theme_registry.py b/tests/test_theme_registry.py index 8b812a2..efa9305 100644 --- a/tests/test_theme_registry.py +++ b/tests/test_theme_registry.py @@ -114,6 +114,45 @@ def test_trade_pro_builds_real_site(factory): assert '>首页<' not in home.text assert '