How to Customize Linked Variation Swatch Colors in WooCommerce?
The Advanced Linked Variations for WooCommerce plugin links separate products by shared attributes such as Color and Size, and shows them as swatches on the product page.
Custom Styling is a Premium feature that sets the border, the gap inside the border, and the colors used on text swatches. The colors apply to every linked variation group, on the product page and in the [dsalv] shortcode.
For example, you can give the current product's swatch a green border, keep the other swatches light gray, and match the text swatches to your store colors.
In The Article
Benefits
Setting these colors can help you:
- Make the current product easier to spot among the other swatches.
- Keep the swatch colors consistent with your store's look.
- Change the text swatch fill and word color without editing theme CSS.
How to Customize Linked Variation Swatch Colors
Step 1: Open Custom Styling
Go to DotStore Plugins → Advanced Linked Variations. This opens the Global Settings tab. Scroll past Basic Configuration to the Custom Styling section.
On the free version, the color fields are visible but locked. A Premium license unlocks them.

Step 2: Set the swatch colors
Use the color pickers to change any of these settings:
| Setting | What it does |
|---|---|
| Border color for current attribute | Border around the swatch for the product the customer is viewing. Hovering a swatch uses this color too. Default: #008000. |
| Border color for inactive attributes | Border around the other swatches the customer can switch to. Default: #dddddd. |
| Padding color | Color of the gap between the swatch border and the image or text inside it. This is a color, not a padding size. Default: #ffffff. |
| Background color (text attributes) | Fill color inside text swatches. Image and color swatches are not affected. Default: #efefef. |
| Text color (text attributes) | Word color on text swatches. Leave this empty to use the theme text color. |

Step 3: Preview and save
Click Preview to open Preview Custom Styling. The popup shows a sample image row and a text row, and it updates as you change the colors.
Click Save Changes when you're happy with the result.

Step 4: Check the product page
Open a product that belongs to a linked variation group. Confirm the borders, the gap inside each swatch, and the text swatch colors match what you saved. If you use the [dsalv] shortcode, check that page too.

Example Use Cases
Match your brand colors
If your store uses a specific accent color, set Border color for current attribute to that color so the selected swatch matches the rest of the page.
Make text swatches easier to read
If the default light gray fill makes your term names hard to read, change Background color (text attributes) and Text color (text attributes).
Keep a light gap around images
If image swatches look tight against the border, set Padding color to white or another light color so the gap is visible.
Conclusion
Custom Styling sets store-wide colors for linked variation swatches, including the current and inactive borders, the gap inside the border, and the fill and text on text swatches. Preview the result, save, and check a product page.
FAQs
1. Where do I find Custom Styling?
Go to DotStore Plugins → Advanced Linked Variations and scroll to Custom Styling on the Global Settings tab.
2. What are the default colors?
Border color for current attribute is #008000, Border color for inactive attributes is #dddddd, Padding color is #ffffff, and Background color (text attributes) is #efefef. Text color (text attributes) is empty, so the theme text color is used.
3. Do these colors apply to image and color swatches?
The two border colors and Padding color apply to all swatches. Background color (text attributes) and Text color (text attributes) apply only to text swatches, such as S, M, and L.
4. Can I use Custom Styling on the free version?
No. On the free version, the fields stay visible but locked. You need a Premium license to change and save these colors.