SASS variables let you store values like colors or font sizes once and reuse them everywhere. This makes changing styles easier and reduces mistakes.
SASS allows nesting selectors inside others using curly braces. This keeps related styles grouped and easier to read.
button {
&.active {
color: red;
}
}button {
&.active {
color: red;
}
}The & symbol in SASS means 'use the parent selector here'. So &.active becomes button.active in CSS.
Mixins let you write a group of CSS rules once and reuse them wherever needed. This is great for layouts like flexbox or grid that repeat often.
SASS functions can calculate color brightness or contrast ratios. This lets you write code that changes text color based on background color to keep it readable.
