From 88c5b4a285e4d4b7dee93a093d95cc38fc1fc162 Mon Sep 17 00:00:00 2001 From: chenchen Date: Mon, 11 May 2026 15:24:04 +0800 Subject: [PATCH] feat(manager-web): align login + header with Heicode brand violet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Theme tokens (theme.css) - --primary retuned to the brand violet oklch(0.58 0.17 278) ≈ #7B6BE3 (was a saturated pink oklch ... 286 that read off-brand against the H glass logo) - New tokens: --brand-from #B888E5, --brand #7B6BE3, --brand-to #6B7CE0, --gradient-brand (135deg three-stop), --gradient-brand-btn for primary CTAs. Both light and dark modes hold the same brand identity. Login page (auth-layout.tsx + sign-in/index.tsx + user-auth-form.tsx) - Inlined H glass mark SVG replaces the abstract ShieldCheck pictogram - Brand wordmark uses gradient text-fill so the word "Heicode" reads as the same gradient as the logo - "Tenant access" pill and h2 heading both pick up brand violet via border / bg / gradient text - Sign-in button switches from solid var(--primary) to the three-stop --gradient-brand-btn with violet drop shadow + lift-on-hover Header user info (profile-dropdown.tsx) - The right-side trigger used to be a bare 36px avatar — invisible user identity unless you click. Now it is a pill: gradient-filled avatar initials + display name + email + role badge, always visible on >=sm - Avatar fallback fills with --gradient-brand so even pre-image, the user pill carries Heicode color identity Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/components/profile-dropdown.tsx | 46 ++++++- .../default/src/features/auth/auth-layout.tsx | 76 +++++++++-- .../sign-in/components/user-auth-form.tsx | 7 +- .../src/features/auth/sign-in/index.tsx | 24 +++- heicode/web/default/src/styles/theme.css | 121 ++++++++++-------- 5 files changed, 208 insertions(+), 66 deletions(-) diff --git a/heicode/web/default/src/components/profile-dropdown.tsx b/heicode/web/default/src/components/profile-dropdown.tsx index 3a7ff6a..80b395d 100644 --- a/heicode/web/default/src/components/profile-dropdown.tsx +++ b/heicode/web/default/src/components/profile-dropdown.tsx @@ -30,11 +30,51 @@ export function ProfileDropdown() { <> -