Locators for Class Name

We commonly use ID and Xpath for locating elements. Xpath is fragile and most of the times my ‘lovely’ developers forget to put IDs.
Then in this case, Class Name comes into the picture.
How can we create different locators strategies using the only class name which includes text, content-desc, index etc.

Also, if there is any doc/github repo for the above and creating differennt locator strategies, please share here.