CodeZettaInterview Hub

SCSS · Mixins · Mid-Level · Live Coding

Write a clear API for a typography mixin.

Short Interview Answer

Accept size/weight/line-height with defaults; map to tokens; avoid magic numbers inside.

Detailed Explanation

Centralize type ramp in tokens; mixin applies consistently. Expose responsive variants carefully.

Did you know this answer?