The goal is applying a color gradient to a subset of symbols, instead of applying it to all the existing symbols. I used to do this in ArcMap. In QGIS I have to do it manually, and it's very time consuming. Also, the results are not as beautiful, because I am not as good in choosing right colors.
This is the final result of doing individual ramps for each symbol group or subset:
And this is the styled map:
Best Answer
"type" IN ('type 1','type 2','type 3','type 4','type 5')
.Set up categories for this group and apply the desired color ramp. Note that when you click "classify", categories will be created for all attribute values, including ones outside the group. You'll need to manually remove the extra categories.
Now you have several main rules with categorized rules nested underneath each rule. Turn off the symbol for each of the main rules, so that only the color ramp styles remain.