Visual Interaction and Frontend Development: Enhancing User Experience and Development Efficiency
This article explores how visual interaction influences user experience and outlines strategies—such as design specifications, component libraries, design tokens, and D2C workflows—to improve consistency and efficiency in frontend development across product iterations.
Preface
Most front‑end work is about implementing human‑computer interaction. User experience and efficiency are inseparable topics; good visual interaction is essential for a great user experience, which in turn drives acquisition, retention, conversion, and work‑efficiency.
Discussing Visual Interaction
What Is User Experience
In HCI, the quality of user experience heavily influences a product’s sustainable growth, so it is necessary to define it first.
User experience refers to a person’s behaviors, emotions and attitudes when using a specific product, system or service, covering interaction, operational, emotional, meaningful and value aspects; it includes perceptions of functionality, usability and efficiency, essentially a subjective feeling toward the system.
In plain words, it is the subjective feeling of users while using a product – its aesthetics, ease of use, and ability to solve problems quickly.
What Is Visual Interaction
After defining user experience, we need to explain visual interaction and its difference from interaction.
Visual: responsible for UI design – colors, spacing, typography, icons, illustrations, motion, etc., conveying brand characteristics and aesthetics.
Interaction: responsible for interaction flow design – task paths, guidance, feedback, aiming to lower learning cost and improve task efficiency.
Analogy: interaction design is like plumbing, wiring, and cabinet layout in a house, affecting functional convenience; visual design is like wall paint and floor color, affecting visual appeal.
Visual Interaction’s Role in User Experience
Visual interaction mainly influences the topmost presentation and framework layers of the five‑layer model of user‑experience factors (as shown in the figure).
These layers are closest to the user, but overall experience also depends on underlying product logic, strategy, and services such as pricing, support, logistics, etc., so visual and interaction cannot be detached from product positioning.
Visual Interaction Guidelines
The hierarchy of user‑experience factors mirrors the typical product iteration workflow.
Because different designers or teams may work on successive iterations, maintaining consistency is a challenge.
Product‑experience consistency: consistency is a metric mentioned in most UX evaluation standards.
To ensure consistency, a visual‑interaction specification is created, covering brand colors, spacing, typography, basic elements, layout, etc., which also improves collaboration efficiency and yields reusable design assets.
UX Issues Without Design Resources
When design resources are scarce, especially in internal tools, front‑end or product teams must take on design tasks, which is difficult without a solid specification. A common solution is to create domain‑specific guidelines and provide training and tooling for non‑designers.
Discussing Development
The next part focuses on the front‑end implementation of HCI, where efficiency is a timeless concern.
Base Component Library
Core Capabilities
After interaction design, developers can reuse a high‑level abstract component library that follows the visual‑interaction specification, providing reusable UI components without business logic.
Extended Capabilities
Beyond core logic, the library should support I18N, RTL, accessibility (A11Y), and responsive behavior for both PC and mobile.
Customization Capabilities
Solution
When a specification is shared across brands, customization (e.g., button corner radius) is needed. This is achieved via Design Tokens, typically implemented with CSS preprocessors (e.g., SCSS variables) and a build step that swaps token values, allowing designers to publish theme packages.
Efficiency Gains
To let designers customize independently, a visual theme‑configuration platform is provided, enabling real‑time preview and online publishing of theme packages, while developers only need to consume the output.
Design‑tool plugins further keep design files in sync with the code theme.
Business Asset Consolidation
Core Capabilities
Business‑specific components require a CLI tool that supports local debugging, building, testing, publishing, and documentation, as well as conversion between TypeScript and JavaScript.
Customization Capabilities
The CLI is extensible via a plugin system (e.g., webpack, Babel) to accommodate team‑specific best practices.
Further Exploration of Production Efficiency
D2C
Current workflows still separate design from code, requiring developers to manually interpret design files. D2C (Design‑to‑Code) aims to bridge this gap by recognizing layouts, components, and generating maintainable code, using layer information, tagging, or machine learning, and providing visual calibration tools.
Component Recognition
We adopt a C2D approach: scanning component APIs and demos, then marking them in design tools so D2C can recognize them, even when customized.
Conclusion
We discussed the impact of visual interaction on user experience and outlined how to progressively improve consistency and efficiency across design and development, hoping to be helpful.
TikTok Frontend Technology Team
We are the TikTok Frontend Technology Team, serving TikTok and multiple ByteDance product lines, focused on building frontend infrastructure and exploring community technologies.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.