This Sass (SCSS) function utilises the Greated Common Divisor (gcd) to reduce duplicate styles.