You can use a loop (created using a secure mixin) with one base class, as shown below. The base class has common properties and can be increased as many times from the loop as needed.
The base class and extension are required to create CSS in the format .x1, .x2, .x3{} . If it can be as .x1{} .x2{} , then the base class and extension are not required.
.x1{
Compiled CSS:
.x1, .x2, .x3, .x4, .x5, .x6, .x7, .x8, .x9, .x10 { color: blue; }
Note. . This approach will not work if we want to call the same mixin to create another loop (e.g. .fancymixin(10, y) ) to create a separate set of properties for the .y* group, because we always extend the properties of the .x1 class.
Harry source share