Why do multiple selectors appear combined in the final CSS after using @extend?
Because @extend merges selectors that share the same styles to avoid repeating CSS rules, so selectors are grouped together in the output.
π‘ Think of @extend like grouping friends wearing the same outfit to save space.
Does @extend copy styles or just link selectors?
@extend does not duplicate styles but merges selectors so they share the same CSS rule, reducing code size and keeping styles consistent.
π‘ Itβs like sharing one recipe card instead of writing it twice.
What happens if I extend a selector that doesnβt exist?
The compiler will throw an error because it cannot find the selector to extend, so no styles get merged or applied.
π‘ You must have the original style defined before extending it.