What is a SASS mixin and how does it differ from a function?
Description : Differences between mixins and functions in SASS.
Answer :
In SASS, a mixin is used to define reusable blocks ofCSS that can be included in different selectors, optionally with parameters. For example,`@mixin border($color) { border: 1px solid $color; }`.Afunction, on the other hand, performs calculations and returns a value that can be used within other styles or functions. For instance,`@function calculate-rem($px) { @return $px / 16px + rem; }` converts pixel values to rem units.