Using the import rule is not a bad practice in itself. You just have to keep in mind that the import is only processed after the file containing them has been loaded. Therefore, if you have a bunch of files with these statements, it may take quite a while for your audience to see that css is being applied.
Each @import
creates a new HTTP request, as it occurs on the client side. Thus, from this point of view, you will damage visitors with slow connections, such as mobile visitors on Edge or 3G.
Thumb Rule I've heard a lot about combining all the CSS you need instantly and using @import
for the things you need later.
source share