CodeZettaInterview Hub

SCSS · Functions · Senior · Scenario

Scenario: theme function must support dark/light.

Short Interview Answer

Pass theme map or use CSS variables for runtime; Sass function can select compile-time theme builds.

Detailed Explanation

Multiple theme CSS files vs one file with CSS vars — choose per product needs.

Did you know this answer?