Recreate a Card Interface from a Screenshot
Company: Mintlify
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Onsite
# Recreate a Card Interface from a Screenshot
Build a frontend component that matches a supplied screenshot of a card containing badges or chips. Explain how you would infer layout and tokens, implement the component accessibly, and verify visual fidelity within a short coding session.
### Constraints & Assumptions
- The screenshot is the visual source of truth, but hidden interaction and responsive behavior must be clarified.
- Use semantic elements and keyboard-visible focus when controls are interactive.
- Do not hard-code the entire screenshot as an image.
### Clarifying Questions to Ask
- Which viewport and pixel density define the reference?
- Are chips interactive, removable, or purely informational?
- What should happen when labels wrap or content is longer than shown?
```hint Extract the visual rules
Identify spacing, type scale, radius, border, and color roles before tuning individual pixel offsets.
```
### What a Strong Answer Covers
- Component structure and reusable data-driven chip rendering.
- Layout, typography, color, states, overflow, and responsive behavior.
- Accessibility semantics, focus, contrast, and reduced-motion considerations.
- A practical screenshot-comparison and edge-case test plan.
### Follow-up Questions
1. How would you make the card themeable without exposing arbitrary styling?
2. What changes when translated labels are twice as long?
Overview: Recreate a screenshot-defined card and chip component through extracted design tokens, accessible semantics, responsive layout, and visual comparison.