You can setup & assign swatches from Theme settings for the Options you’ve created in products. You can go to Theme settings from the left side icons panel inside your Customizer
To access the Product settings,
- Open the Theme settings in your Shopify admin
- Then open the tab Product to see all settings
You can find following settings under Product tab.
|Option name for swatches
|You can add Option names you used inside for product variants. for ex. Color. Split with comma for multiple names.
|Option values of swatches
|Enter values in a key pairs format. for ex. Olive: #50462B, Maroon: #69232D.
- You can find detailed instructions to display Product swatches here