Cool! Glad to see you're taking inspiration from our customer care site. unfortunately you cant add a class to a space or a page however, you can target classes/ids based on the page they are on.
The class you see in the image you've attached is the default class applied to every body of a page or space in a digital workplace. There is no need to add it since it's already there.