Using a block’s additional css class(es) field and attributes

I think "attributes" is the correct term. I have a CSS class that uses "data-color," but I don't know how to use the class with data-color in the block's additional CSS class field.

I'm hoping I can avoid writing a unique class for each color use I have (i.e., I hope I can reuse the class but pass the color attribute).

Thank you.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer