CodeZettaInterview Hub

SCSS · Variables · Junior · Architecture

How do you share variables safely with @use?

Short Interview Answer

Put tokens in a _tokens.scss module; @use 'tokens' as t; reference t.$brand.

Detailed Explanation

Avoid @import (deprecated) which polluted global scope. Forward tokens via @forward for public API packages.

Did you know this answer?