Custom Attributes are created for individual product. The purpose of a custom attribute, is to represent a certain feature of a product, and is used for that one product only. It’s not applicable to most other products.
Once you have custom product attribute for any product, you can always customize them.
In the Custom Attributes settings
Step 1: Create a custom attribute in the Product data
Step 2: Configure the custom attribute with the attribute title, add image/color if needed.
Step 3: Go to the Custom Attribute settings, manage rules for the custom attribute and configure the settings for its swatches. Visit this documentation.