SCSS: getting started

Lesson 05 · 11 min

Files: @use, not a mess in one file

_buttons.scss isn't compiled on its own. The main file includes the pieces.

A partial: a name starting with an underscore, _tokens.scss. @use "tokens" as *; or @use "tokens" as t and then t.$ink. The old @import in Sass mixed variables globally and is on its way out. New code uses @use / @forward.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.