Set the global classes order in the DOM based on the index of the class inside the globalClasses array

Right now, the CSS declarations of the global classes are based on the order of appearance of each class inside the DOM which gives no control over the specificity of each class (since the DOM order could vary on different pages).

It would be great if the CSS declarations were determined by the index of the class inside the globalClasses array, so by changing this index, we would control the specificity of the class.

Makes sense?

Cheers,
Maxime

13 Likes