A phone-number field makes a useful handoff test. Inspect the typography and spacing, then enter an invalid number by keyboard and send a server-side error back to the field. That small exercise tests the visual match, interaction states, and integration contract together.
In financial services, online application flows are typically composed of multi-step forms, SMS or email OTP verification, terms consent, ID scanning and upload, and summary screens. Designers care about typographic hierarchy, alignment, and brand consistency. Backend and systems integration teams care about where field values live, how error states get injected back into the UI, and whether the delivered package actually builds and runs out of the box.
Collective 353 has partnered with Unixis Design across multiple digital banking interface projects for CTBC, where Unixis Design leads strategy, flow architecture, and UI/UX design, and Collective 353 handles frontend implementation, responsive component engineering, and API-ready delivery. Below is how we take a single everyday form field in these financial frontend projects from design mockup to code that a bank’s internal engineering team can pick up directly.
Clarify the project type first: corporate banking portals vs. online banking Web Flows
- Visual
Inspect type, spacing and wrapping
- Interaction
Test keyboard focus and validation
- Integration
Return API errors to the field
Even within the same bank, different product surfaces call for different frontend architectures and handoff models.
The corporate banking smart application platform (FAST) and onboarding portals cover corporate service directories, three-step application forms (Fill → Confirm → Complete), data structures that populate paper-form PDFs after confirmation, and extensive how-to guides. The priority there is high information density, cross-page visual consistency, and layout stability across multi-field groups such as dynamically added account rows and limit tiers.
External online banking service flows (Web Flows) are standalone embedded or redirect-based multi-step application and verification flows, such as registration, OTP verification, and designated account setup. We build these with Vue 3, TypeScript, Vite, and ITCSS-structured SCSS, with no third-party UI libraries, breaking form fields, modals, steppers, and result pages into roughly 40 custom shared components. The shared UI kit stays cleanly separated from flow-specific business logic, and we deliver a self-contained project package with source code, production build artifacts, and integration notes for the bank’s internal systems team.
In either case, matching the static happy-path screen is only the baseline. Even when AI tools or our own img2ui help extract initial palettes and design tokens quickly, what determines whether bank engineers can actually take over the codebase is the other 80% invisible in static mockups: every state from active typing, line wrapping, focus, and validation errors to disabled states and result pages, plus component boundaries that stay decoupled from business logic.
Walking through a “mobile phone field”: six details one field must get right
To make componentization and responsiveness concrete, let’s trace one of the most common fields in any financial application: the mobile phone input row (PhoneInputRow, built on the shared BaseFieldRow and TextInputRow), from mockup to completion screen.
1. Typography, line height, and alignment from the mockup
Most layout drift does not happen because styles are missing; it happens because values are hard-coded across individual pages, so changing one spacing value breaks alignment everywhere else. We anchor the design system at the base layer using CSS Custom Properties (runtime design tokens).
Noto Sans TC serves as the primary typeface with system sans-serif fallbacks. Field labels and input text share --font-size-label (1.0625rem, 17px) with line-height: 1.4, while helper and error messages below use 0.9375rem (15px) with line-height: 1.5. Whenever a mockup contains occasional odd or fractional pixel values, we confirm even-grid rounding rules with the design team so rem proportions stay consistent. Every input row shares a minimum height (--control-height-field: 3.0625rem), padding (--control-padding-block / --control-padding-inline), and border radius (--radius-control: 0.375rem).
Because a single form often stacks 4- to 5-character Chinese labels such as mobile number, national ID, and SMS verification code, BaseFieldRow fixes the label slot to flex: 0 0 5em with white-space: nowrap, keeping the left edge of every input box aligned on a crisp vertical axis. Exposing these tokens as CSS variables rather than compile-time SCSS variables alone also helps during later reuse: if the bank’s team moves a single component file into another project, they do not have to drag a fragile @use dependency chain along with it.
2. Mobile line wrapping and responsive shells
Most users go through financial Web Flows on their phones, yet the exact same flow must also work cleanly on desktop. Using useBreakpoint() (backed by matchMedia), the app switches at 768px between RegistrationMobileShell (standalone mobile card layout, max-width: 26rem) and RegistrationDesktopShell (single desktop form container, max-width: 43.5rem). Routes stay identical, with no separate mobile URLs to maintain.
The input area uses flex: 1 1 auto; min-width: 0 so long strings or placeholders never cause horizontal overflow on a 375px viewport. For long-text fields that need wrapping (such as addresses or remarks), the underlying TextInputRow supports a multiline mode with alignTop (top-aligned label with tuned padding-top) and recalculates height via autoResize() on input and viewport resize, preventing clipped text or nested scrollbars. Before delivery, we verify mobile layouts against design mockups at 375 × 812 CSS px (at 1:1 scale, avoiding desktop browser minimum-width distortion) for line breaks, card radii, and spacing, and check desktop centering and container width at 1440 × 900.
3. Keyboard focus and input sanitization
Being clickable with a mouse does not mean a field feels right with a keyboard or mobile IME. BaseFieldRow uses :focus-within so clicking or tabbing into an input automatically shifts default and filled states into the active style: border switches to brand teal (#009891), background shifts to soft mint (#effffe) with a subtle focus ring, and label color deepens to #067a75. BaseButton uses :focus-visible for clear keyboard focus rings.
When a field opens a picker sheet such as SelectionBottomSheet for bank codes or account lists, the sheet sets role="dialog" and aria-modal="true", supports Esc to close and Tab / Shift+Tab focus trapping, and restores focus to the triggering element on close so keyboard users are never dropped back to the top of the page. On mobile, the phone field defaults to inputmode="numeric" to bring up the numeric keypad. On general text fields with character sanitize rules, illegal characters are intercepted in beforeinput while checking event.isComposing so Bopomofo/Pinyin IME composition is never interrupted, paired with fallback cleanup for paste and autofill to avoid input stutter or flicker.
4. Validation errors (separating frontend format errors from backend business errors)
Nothing causes more back-and-forth between frontend and backend teams than having a single generic red border with no clear rule for when it triggers. BaseFieldRow defines seven explicit field states (FieldState): default, fill, filled, error, backend-error, readonly, and disabled.
For frontend format validation (error), PhoneInputRow paired with useStep1Form does not flash red while the user is still typing for the first time. Once @blur fires or the user submits, the field is marked touched and checked sequentially (non-empty, starts with 09, 10 digits total), switching state to 'error' with the corresponding errorText. Whenever a field is in error or backend-error, styles intentionally override the teal :focus-within treatment with a red border (#ff5441), pale red fill (#fff0e6), and red focus ring, alongside a fixed 14×14 exclamation icon and single-line error message. Users clicking back to fix a mistake will not think the error cleared itself.
Errors that only surface after an API call (such as “mobile number already registered,” “account alias already exists,” or “SMS verification attempts exceeded”) use a dedicated backend-error state with a dashed red border and a CenteredModal alert. Reproducible trigger values live in a centralized config file so both designers and bank engineers can click through every error state before any real API is connected.
5. Submitting and completion states
Hitting Submit does not jump straight to a success screen. While a frontend-only mock handoff validates synchronously before routing, every field component (state="disabled" / state="readonly", locking pointer events with a #e3e3e3 gray fill) and BaseButton (:disabled) already expose locked states and props. Actions waiting on hardware or async responses (like isCameraStarting while initializing the camera) disable triggers immediately. Once internal engineers connect an async API, binding a single isSubmitting flag to buttons and fields prevents duplicate submissions over slow networks.
Beyond the happy-path completion page (SuccessResultPage), delivery includes PendingResultPage, a single-button error page (/error), and a two-button error page (/error2), with summary details factored into shared ResultPageLayout and SummaryList components. In flows like designated account setup, post-submission summary data is intentionally never passed via URL query strings so full account numbers do not linger in browser history or shared links. Instead, route.meta.flow identifies the flow while the state layer holds the result object, with explicit code comments noting that production integration should re-fetch the summary from the backend by application ID on page refresh.
6. Where do bank engineers plug in the real data?
The key to letting the receiving engineer work without reverse-engineering templates line by line is keeping three layers cleanly separated: pure UI components, form-logic composables, and centralized mock configuration.
Page (e.g., Step1Page.vue)
├── UI component layer: PhoneInputRow.vue → TextInputRow.vue → BaseFieldRow.vue
│ • Inbound props: v-model (defineModel<string>), state, errorText, helperText
│ • Outbound event: @blur (triggers validation)
│ • Discipline: domain-agnostic; never imports project config or APIs
│
├── Form logic layer: useStep1Form.ts (Vue Composable)
│ • Managed state: phone, phoneTouched, phoneError, showPhoneRegisteredAlert
│ • Integration hook: handleSubmit()
│ → Replace mock check with async API call
│ → Set loading/disabled before submit; map failures to errorText or modal
│ → On success, write result state and call router.push()
│
└── Centralized config layer: registrationConfig.ts
• Consolidates all mock values (test phone numbers, countdown seconds, error-triggering OTPs)
• Each constant is commented with its expected production data source
At packaging time, a build script prunes files based on the actual production build’s module dependency graph, stripping out dev reference pages, AI tooling configs, test middleware, and unused legacy mocks, then re-runs TypeScript type checking and a clean production build on the pruned directory. That confirms the bank’s team can unzip, install, and build immediately. We also ship a /ui-kit component showcase plus README.md and CHANGELOG.md documenting all known boundaries, such as route guards and placeholder error codes awaiting backend hookup.
Visual fidelity / state completeness / engineering handoff: acceptance checklist
Whether you are a design studio commissioning frontend builds, a product manager signing off on a deliverable, or a bank engineer about to wire up APIs, you can walk through this checklist at handoff review:
| Dimension | Check item | How to verify |
|---|---|---|
| Visual fidelity | Centralized design tokens | Are colors, font sizes, line heights, spacing, radii, and shadows defined as shared variables rather than hard-coded per page? |
| Visual fidelity | Breakpoints at 1:1 scale | Have typography, alignment, and card padding been verified against mockups at target mobile (e.g., 375px) and desktop (1440px) viewports? |
| Visual fidelity | Long text & narrow screens | With long strings, multiline inputs, or narrow viewports, do labels stay aligned without horizontal scrollbars or clipped text? |
| State completeness | All seven field states & focus | Are default, fill, filled, error, backend-error, readonly, disabled, plus :focus-within / :focus-visible, all implemented? |
| State completeness | Keyboard, IME & modal a11y | Is Tab order logical? Does sanitization avoid interrupting IME composition? Do dialogs support Esc, focus trapping, and focus restoration? |
| State completeness | Non-happy-path screens | Can reviewers click through timeout countdowns, wrong OTPs, attempt lockouts, pending pages, and 1- or 2-button error pages? |
| Engineering handoff | UI decoupled from domain logic | Do shared UI components communicate strictly via props / v-model / emits, without importing project-specific configs or hard-coded APIs? |
| Engineering handoff | Single mock & API hook point | Are all mock values isolated in one config file, with clear submit handlers and error-mapping points in form composables? |
| Engineering handoff | Clean bundle & reproducible build | Are dev-only files and test configs stripped out, and does the unzipped bundle pass type checking and production build cleanly? |
Treat “handoff” as the next engineer’s starting line
A common trap in frontend slicing is spending 90% of the effort making the first screenshot match the mockup, while leaving the last 10% tangled in scattered mock data, mixed styles, and ambiguous error states so the receiving team prefers rewriting it from scratch. Structuring design rules, interaction states, and component boundaries for handoff from the start lets designers verify visual accuracy and lets bank engineers move straight into business logic and security integration.
Further reading & services
- Related notes: From a screenshot to Figma components: how img2ui organizes handoff-ready design rules, How to design multi-step forms so users feel safe going back
- Case study: Explore our frontend engineering work with Unixis Design for CTBC corporate banking (FAST), iTrust, and online banking flows → CTBC financial frontend case study
- Service scope: Need frontend architecture and design-system implementation that collaborates closely with designers and hands off API-ready code? → Web applications and systems
- Get in touch: Have mockups ready for frontend build, or want to discuss component architecture and handoff standards? → Contact us