Introduction
Description @import directive in Less. One can maintain the code structure easily by using the Less import directive and spread the code across different files. In the case of CSS, the @import statement must precede all other rules, whereas, in Less @import statement can be used anywhere in the code.
Syntax @import “file_name.less”
Description @import statement.@import statement imports the file as it is.
Example
Conceptual
figure
Step 1
Step 2
Step 3
Step 4
Result
Key Points @import directive.@import statement defines the file in less.
Programming
Tips