In Luxe, this functionality was included in the scripts.js file (theme.js for Shadows) within the function block for the swatch category page. You may need to modify for your store.
Code:
// ---- Add 'box-shadow' to Active Swatch ---- //
function selectedSwatch() {
$.hook('cmp-product-list__swatches').find('li').each(function () {
var swatchElement = $(this),
swatchColor = swatchElement.attr('data-code'),
swatchImage = swatchElement.find('img');
if (swatchColor === $.hook('swatch-select').find('option:selected').val()) {
swatchImage.addClass('is--active');
}
});
}
selectedSwatch();
MivaEvents.SubscribeToEvent('variant_changed', function () {
selectedSwatch();
});

Leave a comment: