Search⌘ K

Interpolation

Explore how to use interpolation in Sass to insert expressions dynamically into your stylesheets. Understand how to create reusable and flexible CSS properties by using variables and expressions with the #{} syntax to write cleaner, more efficient code.

Definition #

Interpolation is essentially a code insertion. It allows us to interpolate SASS expressions into our code. We can use it to use a selector or property name, quoted or unquoted strings etc, as variables.

Syntax

...