Through the webpart I inject my own CSS into the Sharepoint Online site. I can do a lot to site branding this way, but I'm looking for a better way to target the sections. What I do now is that I am targeting them by their order:
.CanvasZone:nth-of-type(2) {
// styles for second section of the page
}
But this way I can't change order of sections without changing CSS.
Is it possible to assign new CSS classes for selected sections without using some JS-injecting webparts? If not, are there any SPFX webparts or extensions to achieve this goal by extending configuration fields for sections OR by adding whole new section type?