.container { @for $i from 1 through 3 { @at-root .box-#{$i} { color: darken(red,($i * 5)); } } // Control @at-root .outside-child { background-color: blue; } }