From be5d03a30c5c23e44900e1c12fd7e6c8d5b0b7f8 Mon Sep 17 00:00:00 2001 From: Tom Boullay Date: Tue, 2 Jun 2026 22:53:06 +0200 Subject: [PATCH] feat(ui): redesign InteractPrompt per Figma DA - Larger label box and key cube on white-translucent backgrounds (rgba(255, 255, 255, 0.92)) with black Inter 900 text and rounded 12px corners + soft drop shadow. - Move from bottom: 30% to bottom: 12% so the prompt sits closer to the visual center of attention near focused world objects. - Key cube grown 24x24 -> 64x64 / font 13 -> 32, label padding 0 -> 16x24 / font 13 -> 22, both bold instead of regular. --- src/index.css | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/src/index.css b/src/index.css index 4e35707..2f25d5c 100644 --- a/src/index.css +++ b/src/index.css @@ -809,12 +809,12 @@ canvas { .interact-prompt { position: fixed; - bottom: 30%; + bottom: 12%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; - gap: 8px; + gap: 12px; pointer-events: none; z-index: 10; } @@ -823,21 +823,32 @@ canvas { display: inline-flex; align-items: center; justify-content: center; - width: 24px; - height: 24px; - background: rgba(255, 255, 255, 0.15); - border: 1px solid rgba(255, 255, 255, 0.5); - border-radius: 4px; - font-size: 13px; - font-weight: 600; - color: white; + width: 64px; + height: 64px; + background: rgba(255, 255, 255, 0.92); + border-radius: 12px; + box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); + font-family: "Inter", sans-serif; + font-size: 32px; + font-weight: 900; font-style: normal; + color: #0a0a0a; + letter-spacing: 0; } .interact-prompt__label { - font-size: 13px; - color: rgba(255, 255, 255, 0.85); - letter-spacing: 0.03em; + display: inline-flex; + align-items: center; + padding: 16px 24px; + background: rgba(255, 255, 255, 0.92); + border-radius: 12px; + box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); + font-family: "Inter", sans-serif; + font-size: 22px; + font-weight: 900; + color: #0a0a0a; + letter-spacing: 0; + line-height: 1; } .repair-movement-lock-indicator {