Igneous rocks are classified according to how and where they formed (in other words, if they’re intrusive or extrusive) and their mineral composition (describing the minerals they contain).
The mineral compositions of igneous rocks are usually described as being felsic, intermediate, mafic, or ultramafic