Actually Igneous rocks are classified either based on grain size or based on mineralogy. However grain size is clearly not a chemical property. So we can say that they are classified chemically based on mineralogy or the abundance of quartz or silica present.