What are other solution to use @use in scss for retrieving nested class names?

I know using @import can work, but it is going to be deprecated, so I don't want to use that. Does anyone have any other solution? Example a nested class:
.class-1 {
// rest of styling...
.class-a {}

.class-b{}
}
.class-1 {
// rest of styling...
.class-a {}

.class-b{}
}
I want just to use something like @extend .class-1 once, then I get the .class-1 and all of the included nested class name
2 Replies
Kevin Powell
Kevin Powell2y ago
If you want to @extend, you'll have to @use the file it's coming from first, no way around that.
Koicha
Koicha2y ago
understood! Thanks for the reply @Kevin ❤️
Want results from more Discord servers?
Add your server