@use 'tokens'; loads a file once. Access members: tokens.$brand or @use 'tokens' as t;
The playground compiles a single file — in projects you split partials and @use them from an entry main.scss.
Going deeper
In production Sass work, @use and namespaces matters when documents, stylesheets, or apps must stay maintainable across teams and releases—not only in isolated demos.
Common pitfalls
Watch for copy-paste configs, skipping validation or tests, and mixing concerns (structure vs presentation vs behavior) in one layer.
Practice
- Apply one technique from this lesson in the playground.
- Write one interview-style sentence explaining when you would use @use and namespaces on a real project.
Interview prep
- Why @use instead of @import?
@useloads each file once, namespaces members, and is the modern module system;@importis deprecated.