Design system
Дизайн-система
A design system gives teams shared rules and reusable building blocks for making interfaces. It defines how elements such as buttons and forms should look and behave, and guides teams on when to use them.
Also known as: UI-кит, UI kit
What a design system solves
Say three teams build screens for the same account portal. If each team implements dialogs independently, Escape might close one dialog but do nothing in another. A design system gives the teams a shared implementation and guidance on when a dialog is appropriate in the first place. It makes interactions predictable without requiring every screen to look identical.
What it contains
- Design tokens are named values for things like color, spacing, and typography. A semantic token such as
color-text-dangerdescribes a role rather than a shade. The same role can map to different colors in light and dark themes. - Components are reusable building blocks with defined variants and states. A team might keep design assets in Figma, ship the implementation in a frontend package, and use Storybook to demonstrate states that are hard to encounter on demand, such as a field with a server-side error.
- Patterns and guidance explain how to combine components and when to use them. A dialog component can manage keyboard focus; the guidance can explain when to interrupt the user with a dialog and when to show a message inline instead.
- Ownership and releases keep the system usable as products change. Someone reviews proposals, maintains the design assets and code, and documents how consumers can migrate away from deprecated component options.
Example: confirming a destructive action
Consider a confirmation dialog for deleting a saved address. The product supplies the title, the action labels, and the deletion logic. The shared modal provides the dialog semantics, moves focus inside on open, and keeps keyboard focus within the modal while it is open. The guidance recommends a specific action label such as “Delete address” rather than “OK.” On close, focus normally returns to the control that opened the dialog. If deletion removed that control, the screen needs another logical focus target. That last detail is why testing the component in isolation is not enough.
Design system vs. UI kit
A UI kit usually means a collection of ready-made interface assets, often for design mockups. Some teams also use the label for a coded component library. Either can be part of a design system, but a catalog of components alone doesn't explain where they fit, how they behave together, or how changes reach the teams that use them. A small system with clear rules and reliable releases can be more useful than a large kit nobody maintains.
What interviewers ask
A frontend interviewer might ask how you'd handle three similar button implementations in an existing app. Start by comparing behavior, not just appearance: which controls submit forms, which navigate, and which handle pending actions? Preserve meaningful differences rather than forcing them behind one prop. Then propose a shared API, test representative uses, and migrate one surface at a time so you can catch regressions before replacing the rest.